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

Commit 9a23f2e7 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

am: clear state for every protected app invocation.

Change-Id: I7766e050b8bedb46ff9293a5d61451e6c998fb0b
TICKET: CYNGNOS-2962
parent aa238e9f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2205,6 +2205,7 @@ public final class ActivityManagerService extends ActivityManagerNative
                try {
                    Intent protectedAppIntent = new Intent();
                    protectedAppIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
                    protectedAppIntent.setComponent(
                            new ComponentName("com.android.settings",
                                    "com.android.settings.applications.ProtectedAppsActivity"));
@@ -2237,6 +2238,8 @@ public final class ActivityManagerService extends ActivityManagerNative
                            .build();
                    try {
                        int[] outId = new int[1];
                        inm.cancelNotificationWithTag("android", null,
                                R.string.notify_package_component_protected_title, msg.arg1);
                        inm.enqueueNotificationWithTag("android", "android", null,
                                R.string.notify_package_component_protected_title,
                                notification, outId, mCurrentUserId);