Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d85a6642 authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't fall back to domain verification state when looking up app linkage state

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
parent 0f724601
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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) {