This commit is contained in:
Oizaro 2020-09-20 01:26:08 +02:00
parent 1ccd603860
commit dab55e29a0
1 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,6 @@ class PushRegisterHandler extends Handler {
return PendingIntent.getBroadcast(context, 0, intent, 0);
}
@RequiresApi(api = Build.VERSION_CODES.M)
@Override
public void handleMessage(Message msg) {
if (msg.what == 0) {
@ -179,7 +178,9 @@ class PushRegisterHandler extends Handler {
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();