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

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Oizaro authored and Oizaro committed Sep 19, 2020
1 parent 1ccd603 commit dab55e2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ private PendingIntent getSelfAuthIntent() {
return PendingIntent.getBroadcast(context, 0, intent, 0);
}

@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public void handleMessage(Message msg) {
if (msg.what == 0) {
Expand Down Expand Up @@ -179,7 +178,9 @@ public void handleMessage(Message msg) {
Intent i = new Intent(context, McsService.class);
i.setAction(ACTION_ACK);
i.putExtra(EXTRA_APP, getSelfAuthIntent());
new ForegroundServiceContext(context).startService(i);
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
new ForegroundServiceContext(context).startService(i);
}
break;
default:
Bundle bundle = new Bundle();
Expand Down

0 comments on commit dab55e2

Please sign in to comment.