Credential management app UI tweaks
Credential management app Settings screen * Add uninstall certificates button * Reformat summary * Remove dividing lines Request manage credentials screen * Make requesting app name bold Manual testing * Install TestDPC and select 'Request to manage credentials' * Verify app name is bold and select allow * Install a certificate as the cred mng app via TestDPC * Go to Setting > Security > Encryption & Credentials > Credential Management App * Verify screen looks like mocks * Select 'Remove certificates' and verify all certificates installed by the cred mng app are removed Settings screen: https://screenshot.googleplex.com/C6n9bnwkw843jgf Request screen: https://screenshot.googleplex.com/5qH44NXKKGRsdHs Bug: 189416800 Test: manual testing CredentialManagementAppControllerTest CredentialManagementAppFragmentTest CredentialManagementAppButtonsControllerTest CredentialManagementAppHeaderControllerTest RequestManageCredentialsTest Change-Id: I71334b231ae7cefbc055e2575eda5418da2548b4
This commit is contained in:
@@ -21,6 +21,7 @@ import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.security.AppUriAuthenticationPolicy;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -85,11 +86,13 @@ public class CredentialManagementAppAdapter extends RecyclerView.Adapter<Recycle
|
||||
ApplicationInfo applicationInfo =
|
||||
mPackageManager.getApplicationInfo(mCredentialManagerPackage, 0);
|
||||
mAppIconView.setImageDrawable(mPackageManager.getApplicationIcon(applicationInfo));
|
||||
mTitleView.setText(mContext.getString(R.string.request_manage_credentials_title,
|
||||
mTitleView.setText(TextUtils.expandTemplate(
|
||||
mContext.getText(R.string.request_manage_credentials_title),
|
||||
applicationInfo.loadLabel(mPackageManager)));
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
mAppIconView.setImageDrawable(null);
|
||||
mTitleView.setText(mContext.getString(R.string.request_manage_credentials_title,
|
||||
mTitleView.setText(TextUtils.expandTemplate(
|
||||
mContext.getText(R.string.request_manage_credentials_title),
|
||||
mCredentialManagerPackage));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user