am c37d0fa9: am 5cf37f71: am 8170e7a4: am 5ffa7c26: am 49983b99: Show correct text for app link domains.

* commit 'c37d0fa9ea0693bc70f2b2a40f88e5b6bb0586ea':
  Show correct text for app link domains.
This commit is contained in:
Tim Kilbourn
2015-07-09 00:54:09 +00:00
committed by Android Git Automerger

View File

@@ -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);