Merge "Fix LaunchAnyWhere in AppRestrictionsFragment" into tm-dev am: a4a14e9bdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17614846 Change-Id: I5faf53c2b7070bae3b1584d29aa3042466bc1e5d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user