[automerge] Fix LaunchAnyWhere in AppRestrictionsFragment 2p: 90e095dbe3

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17614846

Bug: 223578534
Change-Id: Ie4e4825ea8c9020986f59d59c31f40765e5d92a7
This commit is contained in:
Edgar Wang
2022-04-06 10:02:31 +00:00
committed by Presubmit Automerger Backend

View File

@@ -661,10 +661,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
}
private void assertSafeToStartCustomActivity(Intent intent) {
// Activity can be started if it belongs to the same app
if (intent.getPackage() != null && intent.getPackage().equals(packageName)) {
return;
}
EventLog.writeEvent(0x534e4554, "223578534", -1 /* UID */, "");
ResolveInfo resolveInfo = mPackageManager.resolveActivity(
intent, PackageManager.MATCH_DEFAULT_ONLY);