OSDN Git Service

Don't fall back to domain verification state when looking up app linkage state
authorChristopher Tate <ctate@google.com>
Fri, 17 Jul 2015 22:39:08 +0000 (15:39 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 17 Jul 2015 22:39:08 +0000 (15:39 -0700)
This is in support of the always/never/ask UI tweaks in Settings: any
"assume always" fallback at the verification layer should not be
conflated with the user-facing semantic toggle.  This was causing the
UI to report apps as being in the 'always open their links' state
inappropriately.

Bug 22532193

Change-Id: Iaa4bc3a2d5db814e1b0d96bc1c4ecfaafb1e3105

services/core/java/com/android/server/pm/Settings.java

index 312b7b3..279608c 100644 (file)
@@ -1056,13 +1056,7 @@ final class Settings {
             }
             return INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED;
         }
-        int status = (int)(ps.getDomainVerificationStatusForUser(userId) >> 32);
-        if (status == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_UNDEFINED) {
-            if (ps.getIntentFilterVerificationInfo() != null) {
-                status = ps.getIntentFilterVerificationInfo().getStatus();
-            }
-        }
-        return status;
+        return (int)(ps.getDomainVerificationStatusForUser(userId) >> 32);
     }
 
     boolean updateIntentFilterVerificationStatusLPw(String packageName, final int status, int userId) {