Merge changes from topic "presubmit-am-5513fca9a4904e75827e4e4077587542" into tm-mainline-prod
* changes:
[automerge] Fix LaunchAnyWhere in AppRestrictionsFragment 2p: 90e095dbe3
Fix LaunchAnyWhere in AppRestrictionsFragment
This commit is contained in:
@@ -661,10 +661,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void assertSafeToStartCustomActivity(Intent intent) {
|
private void assertSafeToStartCustomActivity(Intent intent) {
|
||||||
// Activity can be started if it belongs to the same app
|
EventLog.writeEvent(0x534e4554, "223578534", -1 /* UID */, "");
|
||||||
if (intent.getPackage() != null && intent.getPackage().equals(packageName)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ResolveInfo resolveInfo = mPackageManager.resolveActivity(
|
ResolveInfo resolveInfo = mPackageManager.resolveActivity(
|
||||||
intent, PackageManager.MATCH_DEFAULT_ONLY);
|
intent, PackageManager.MATCH_DEFAULT_ONLY);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user