summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2014-08-13 14:52:52 -0700
committerJim Miller <jaggies@google.com>2014-08-13 17:03:50 -0700
commit75fe9e027c2f280664c2aaa0a78457fc37bd0e8b (patch)
tree72fefb1fb25c1e03273747cf08a640e9a90a35ea
parentb51253cfed0796b20e03a104aaca4d8d3e2d3024 (diff)
downloadpackages_apps_Settings-75fe9e027c2f280664c2aaa0a78457fc37bd0e8b.tar.gz
packages_apps_Settings-75fe9e027c2f280664c2aaa0a78457fc37bd0e8b.tar.bz2
packages_apps_Settings-75fe9e027c2f280664c2aaa0a78457fc37bd0e8b.zip
API review - move confirm credential constants from Intent
Moves constants from Intent to KeyguardManager. Fixes bug 17006280 Change-Id: I8ee1f534816a3fe823ad44479e227ba6d3675389
-rw-r--r--AndroidManifest.xml6
-rw-r--r--src/com/android/settings/ConfirmDeviceCredentialActivity.java5
2 files changed, 8 insertions, 3 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 63cb07c2c..6ff363904 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1109,7 +1109,11 @@
<!-- Lock screen settings -->
<activity android:name="ConfirmDeviceCredentialActivity"
android:exported="true">
- <!-- Use high-priority to prevent an installed activity from masquerading as this one. -->
+ <intent-filter>
+ <action android:name="android.app.action.CONFIRM_DEVICE_CREDENTIAL" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <!-- TODO: Remove this once new API is being used -->
<intent-filter android:priority="1000">
<action android:name="android.intent.action.CONFIRM_DEVICE_CREDENTIAL" />
<category android:name="android.intent.category.DEFAULT" />
diff --git a/src/com/android/settings/ConfirmDeviceCredentialActivity.java b/src/com/android/settings/ConfirmDeviceCredentialActivity.java
index 6a5c486f8..6b2bfd282 100644
--- a/src/com/android/settings/ConfirmDeviceCredentialActivity.java
+++ b/src/com/android/settings/ConfirmDeviceCredentialActivity.java
@@ -18,6 +18,7 @@
package com.android.settings;
import android.app.Activity;
+import android.app.KeyguardManager;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
@@ -34,8 +35,8 @@ public class ConfirmDeviceCredentialActivity extends Activity {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
- String title = intent.getStringExtra(Intent.EXTRA_TITLE);
- String details = intent.getStringExtra(Intent.EXTRA_DETAILS);
+ String title = intent.getStringExtra(KeyguardManager.EXTRA_TITLE);
+ String details = intent.getStringExtra(KeyguardManager.EXTRA_DESCRIPTION);
ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(this);
if (!helper.launchConfirmationActivity(0 /* request code */, title, details)) {