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

Commit cce904a3 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Remove blocking binder calls from isInUse method" am: 4bef5586 am:...

Merge "Remove blocking binder calls from isInUse method" am: 4bef5586 am: e7e3c7ec am: 944268b7

Change-Id: I8acad02cbee80118e81c25070b68c214a953d03a
parents 957f110d 944268b7
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -179,18 +179,7 @@ public class DynamicSystemService extends IDynamicSystemService.Stub implements

    @Override
    public boolean isInUse() throws RemoteException {
        boolean gsidWasRunning = "running".equals(SystemProperties.get("init.svc.gsid"));
        boolean isInUse = false;

        try {
            isInUse = getGsiService().isGsiRunning();
        } finally {
            if (!gsidWasRunning && !isInUse) {
                mGsiService = null;
            }
        }

        return isInUse;
        return SystemProperties.getBoolean("ro.gsid.image_running", false);
    }

    @Override