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

Commit 15320087 authored by wilsonshih's avatar wilsonshih
Browse files

Allow VIS to override task transition animation.

Allow VIS to custome task transition by
ActivityOptions#makeCustomAnimation while start activity.

Bug: 304795248
Test: atest SafeActivityOptionsTest
Change-Id: I0a0a38b0f2343b2363e8ef7ac46de38f048ed8a7
parent 3fca7acc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -333,7 +333,9 @@ public class SafeActivityOptions {
        if (aInfo != null && overrideTaskTransition) {
            final int startTasksFromRecentsPerm = ActivityTaskManagerService.checkPermission(
                    START_TASKS_FROM_RECENTS, callingPid, callingUid);
            if (startTasksFromRecentsPerm != PERMISSION_GRANTED) {
            // Allow if calling uid is from assistant, or start task from recents
            if (startTasksFromRecentsPerm != PERMISSION_GRANTED
                    && !isAssistant(supervisor.mService, callingUid)) {
                final String msg = "Permission Denial: starting " + getIntentString(intent)
                        + " from " + callerApp + " (pid=" + callingPid
                        + ", uid=" + callingUid + ") with overrideTaskTransition=true";