version:1.7.0
fix: update:修改布局
This commit is contained in:
@@ -6,6 +6,8 @@ import android.content.Intent;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import com.uiui.zyos.service.main.MainService;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import io.reactivex.rxjava3.core.Observable;
|
||||
@@ -14,7 +16,7 @@ import io.reactivex.rxjava3.core.Observer;
|
||||
import io.reactivex.rxjava3.disposables.Disposable;
|
||||
|
||||
public class BootReceiver extends BroadcastReceiver {
|
||||
private static String TAG = BootReceiver.class.getSimpleName();
|
||||
private static final String TAG = BootReceiver.class.getSimpleName();
|
||||
public static final String BOOT_COMPLETED = "zuoyeos.action.BOOT_COMPLETED";
|
||||
public static final String SOS = "zuoyeos.action.SOS";
|
||||
|
||||
@@ -70,6 +72,7 @@ public class BootReceiver extends BroadcastReceiver {
|
||||
// Intent alarmIntent = new Intent(MessageReceiver.SET_ALARMCLOCK);
|
||||
// context.sendBroadcast(alarmIntent);
|
||||
case Intent.ACTION_BOOT_COMPLETED:
|
||||
context.startService(new Intent(context, MainService.class));
|
||||
break;
|
||||
// TODO: 2023/6/17 频繁唤醒耗电
|
||||
// case Intent.ACTION_BATTERY_CHANGED:
|
||||
|
||||
Reference in New Issue
Block a user