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

Commit 49983b99 authored by Tim Kilbourn's avatar Tim Kilbourn
Browse files

Show correct text for app link domains.

The user's preferences were not queried on the app listing, making it
look like an app would open links even after the user disabled app
links for the app.

Bug: 21093152
Change-Id: I133ff229bb5e289ebec8df06924936fb3177f095
parent b493b291
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1045,6 +1045,14 @@ public class ManageApplications extends InstrumentedFragment
        }

        private CharSequence getDomainsSummary(String packageName) {
            // If the user has explicitly said "no" for this package, that's the
            // string we should show.
            int domainStatus = mPm.getIntentVerificationStatus(packageName, UserHandle.myUserId());
            if (domainStatus == PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) {
                return mContext.getString(R.string.domain_urls_summary_none);
            }
            // Otherwise, ask package manager for the domains for this package,
            // and show the first one (or none if there aren't any).
            ArraySet<String> result = Utils.getHandledDomains(mPm, packageName);
            if (result.size() == 0) {
                return mContext.getString(R.string.domain_urls_summary_none);