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

Commit a4a14e9b authored by Edgar Wang's avatar Edgar Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix LaunchAnyWhere in AppRestrictionsFragment" into tm-dev

parents 5a539c5c 90e095db
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);