Код: Выделить всё
@Override
protected void onResume() {
super.onResume();
if (!CustomSystem.isUpdateServiceStarted()) {
UpdateService.started = false;
startService(new Intent(this, UpdateService.class));
timerCheckStarted = new CountDownTimer(500, 500) {
...
};
timerCheckStarted.start();
} else {
UpdateService.wakeUp(BaseActivity.this);
}
}
Я предполагаю, что это связано с введенными ограничениями с Android 12, но я не могу понять, в чем проблема.
Подробнее здесь: https://stackoverflow.com/questions/767 ... -12-and-13