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

Commit 2b701747 authored by Guang Zhu's avatar Guang Zhu Committed by Android Git Automerger
Browse files

am e7cd5e2b: am 67b3436b: am 08cba16a: Merge "allow top sleeping state in app...

am e7cd5e2b: am 67b3436b: am 08cba16a: Merge "allow top sleeping state in app process verification" into mnc-dev

* commit 'e7cd5e2b':
  allow top sleeping state in app process verification
parents 1c9c4b29 e7cd5e2b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -208,7 +208,8 @@ public class AppCompatibility extends InstrumentationTestCase {
    private boolean ensureForegroundActivity(RunningAppProcessInfo info) {
        Log.d(TAG, String.format("ensureForegroundActivity: proc=%s, pid=%d, state=%d",
                info.processName, info.pid, info.processState));
        return info.processState == ActivityManager.PROCESS_STATE_TOP;
        return info.processState == ActivityManager.PROCESS_STATE_TOP
            || info.processState == ActivityManager.PROCESS_STATE_TOP_SLEEPING;
    }

    /**