Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fix ActivityManagerService goingToSleep/wakingUp
Browse files Browse the repository at this point in the history
Refs #1757
  • Loading branch information
M66B committed Feb 14, 2015
1 parent 73097c6 commit 99f3957
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/biz/bokhorst/xprivacy/XActivityManagerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.concurrent.Semaphore;

import android.annotation.SuppressLint;
import android.os.Build;
import android.os.IBinder;
import android.util.Log;

Expand All @@ -28,6 +29,10 @@ private XActivityManagerService(Methods method) {

@Override
public boolean isVisible() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
if (mMethod == Methods.goingToSleep || mMethod == Methods.wakingUp)
return false;

return (mMethod != Methods.appNotResponding && mMethod != Methods.finishBooting);
}

Expand Down

0 comments on commit 99f3957

Please sign in to comment.