Allow navigation to TrustedCredentials User Certs by intent.
Adds an activity, and an entry in the AndroidManifest.xml Change-Id: Ic3cfa1f3bdc3f2eefc290195679011c224496d63
This commit is contained in:
@@ -854,6 +854,23 @@
|
||||
android:resource="@id/security_settings" />
|
||||
</activity>
|
||||
|
||||
<activity android:name="Settings$TrustedCredentialsSettingsActivity"
|
||||
android:label="@string/trusted_credentials"
|
||||
android:taskAffinity=""
|
||||
android:excludeFromRecents="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<action android:name="com.android.settings.TRUSTED_CREDENTIALS" />
|
||||
<action android:name="com.android.settings.TRUSTED_CREDENTIALS_USER" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="com.android.settings.SHORTCUT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
|
||||
android:value="com.android.settings.TrustedCredentialsSettings" />
|
||||
<meta-data android:name="com.android.settings.TOP_LEVEL_HEADER_ID"
|
||||
android:resource="@id/security_settings" />
|
||||
</activity>
|
||||
|
||||
<!-- Keep compatibility with old shortcuts. -->
|
||||
<activity-alias android:name="SecuritySettings"
|
||||
android:label="@string/security_settings_title"
|
||||
|
@@ -334,6 +334,7 @@ public class Settings extends PreferenceActivity
|
||||
NotificationAccessSettings.class.getName(),
|
||||
ManageAccountsSettings.class.getName(),
|
||||
PrintingSettings.class.getName(),
|
||||
TrustedCredentialsSettings.class.getName()
|
||||
};
|
||||
|
||||
@Override
|
||||
@@ -958,4 +959,5 @@ public class Settings extends PreferenceActivity
|
||||
public static class NotificationAccessSettingsActivity extends Settings { /* empty */ }
|
||||
public static class UsbSettingsActivity extends Settings { /* empty */ }
|
||||
public static class NfcPaymentActivity extends Settings { /* empty */ }
|
||||
public static class TrustedCredentialsSettingsActivity extends Settings { /* empty */ }
|
||||
}
|
||||
|
@@ -58,6 +58,8 @@ public class TrustedCredentialsSettings extends Fragment {
|
||||
|
||||
private UserManager mUserManager;
|
||||
|
||||
private static final String USER_ACTION = "com.android.settings.TRUSTED_CREDENTIALS_USER";
|
||||
|
||||
private static final int REQUEST_PIN_CHALLENGE = 12309;
|
||||
// If the restriction PIN is entered correctly.
|
||||
private boolean mChallengeSucceeded;
|
||||
@@ -168,6 +170,10 @@ public class TrustedCredentialsSettings extends Fragment {
|
||||
addTab(Tab.SYSTEM);
|
||||
// TODO add Install button on Tab.USER to go to CertInstaller like KeyChainActivity
|
||||
addTab(Tab.USER);
|
||||
if (getActivity().getIntent() != null &&
|
||||
USER_ACTION.equals(getActivity().getIntent().getAction())) {
|
||||
mTabHost.setCurrentTabByTag(Tab.USER.mTag);
|
||||
}
|
||||
return mTabHost;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user