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

Commit f3918002 authored by Winson's avatar Winson
Browse files

Fixing issue with checking the docked stack state for the wrong user.

Bug: 26256285

Change-Id: I068ee8250dc75bda984092300d75031422fbbd11
parent d8d896ce
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ public class SystemServicesProxy {
    }

    /**
     * @return whether there are any docked tasks.
     * @return whether there are any docked tasks for the current user.
     */
    public boolean hasDockedTask() {
        if (mIam == null) return false;
@@ -375,6 +375,9 @@ public class SystemServicesProxy {
        ActivityManager.StackInfo stackInfo = null;
        try {
            stackInfo = mIam.getStackInfo(DOCKED_STACK_ID);
            if (stackInfo != null && stackInfo.userId != getCurrentUser()) {
                return false;
            }
        } catch (RemoteException e) {
            e.printStackTrace();
        }