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

Commit 4bef5586 authored by Howard Chen's avatar Howard Chen Committed by Gerrit Code Review
Browse files

Merge "Remove blocking binder calls from isInUse method"

parents 8afb2bf1 07fcb2fc
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