Skip to content

Commit

Permalink
added Reactor13's fix from 17.04.2018
Browse files Browse the repository at this point in the history
  • Loading branch information
eftas-gka committed Jun 27, 2018
1 parent 6d1b27f commit 75adde7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.UserManager;

import org.json.JSONObject;

Expand Down Expand Up @@ -57,8 +58,10 @@ abstract public class AbstractRestoreReceiver extends BroadcastReceiver {
public void onReceive (Context context, Intent intent) {
String action = intent.getAction();

if (action.equals(ACTION_BOOT_COMPLETED) && SDK_INT >= 24)
return;
if (SDK_INT >= 24) {
UserManager um = (UserManager) context.getSystemService(UserManager.class);
if (um == null || um.isUserUnlocked() == false) return;
}

Manager mgr = Manager.getInstance(context);
List<JSONObject> toasts = mgr.getOptions();
Expand Down

0 comments on commit 75adde7

Please sign in to comment.