summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications/AppLaunchSettings.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2015-08-13 16:34:10 -0700
committerChristopher Tate <ctate@google.com>2015-08-13 16:34:10 -0700
commit970291e20c9b7fa0ccc5677149c37ce68434968c (patch)
treecbdd47f3210032094beb5bf8fb92bc1a04603e27 /src/com/android/settings/applications/AppLaunchSettings.java
parent9f879ef009863a0674e891ad0e51b1b216da5beb (diff)
downloadpackages_apps_Settings-970291e20c9b7fa0ccc5677149c37ce68434968c.zip
packages_apps_Settings-970291e20c9b7fa0ccc5677149c37ce68434968c.tar.gz
packages_apps_Settings-970291e20c9b7fa0ccc5677149c37ce68434968c.tar.bz2
Make "Ask every time" actually work that way
..in link-opening behavior. If a candidate is marked as "ask every time," then the user is guaranteed to get a disambiguation prompt including that candidate even when some other candidate app is in the "always prefer this over a browser" state. Bug 23147746 Change-Id: I73d8893ab74ea0356b757ab836349243cda2e307
Diffstat (limited to 'src/com/android/settings/applications/AppLaunchSettings.java')
-rw-r--r--src/com/android/settings/applications/AppLaunchSettings.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/AppLaunchSettings.java b/src/com/android/settings/applications/AppLaunchSettings.java
index b63bd7d..c885b02 100644
--- a/src/com/android/settings/applications/AppLaunchSettings.java
+++ b/src/com/android/settings/applications/AppLaunchSettings.java
@@ -39,6 +39,7 @@ import com.android.settings.Utils;
import static android.content.pm.PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED;
import static android.content.pm.PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK;
import static android.content.pm.PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS;
+import static android.content.pm.PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK;
import static android.content.pm.PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER;
import java.util.List;
@@ -93,7 +94,7 @@ public class AppLaunchSettings extends AppInfoWithHeader implements OnClickListe
mAppLinkState.addItem(R.string.app_link_open_always,
INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS);
mAppLinkState.addItem(R.string.app_link_open_ask,
- INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK);
+ INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK);
mAppLinkState.addItem(R.string.app_link_open_never,
INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER);
@@ -105,7 +106,7 @@ public class AppLaunchSettings extends AppInfoWithHeader implements OnClickListe
final int state = mPm.getIntentVerificationStatus(mPackageName, UserHandle.myUserId());
mAppLinkState.setSelectedValue(
(state == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED)
- ? INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ASK
+ ? INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK
: state);
// Set the callback only after setting the initial selected item