| | |
| | | //设置导航条背景颜色
|
| | | Activity activity = (Activity) context;
|
| | | activity.getWindow().setNavigationBarColor(HDLApp.getInstance().getColor(R.color.text_FF1C1C1E));
|
| | | try {
|
| | | // if (!UserConfigManage.getInstance().isBAccount()) {
|
| | | if (!ServiceUtils.isServiceRunning(context, MyForegroundService.class)) {
|
| | | // 启动前台服务
|
| | | Intent serviceIntent = new Intent(context, MyForegroundService.class);
|
| | | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
| | | context.startForegroundService(serviceIntent);
|
| | | } else {
|
| | | context.startService(serviceIntent);
|
| | | }
|
| | | }
|
| | | // 2026年01月06日18:12:25 因上架到谷歌被拒,因上架紧急,暂时先取消前台服务,待修复后再恢复;
|
| | | // try {
|
| | | //// if (!UserConfigManage.getInstance().isBAccount()) {
|
| | | // if (!ServiceUtils.isServiceRunning(context, MyForegroundService.class)) {
|
| | | // // 启动前台服务
|
| | | // Intent serviceIntent = new Intent(context, MyForegroundService.class);
|
| | | // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
| | | // context.startForegroundService(serviceIntent);
|
| | | // } else {
|
| | | // context.startService(serviceIntent);
|
| | | // }
|
| | | // }
|
| | | } catch (Exception e) {
|
| | | }
|
| | | //// }
|
| | | // } catch (Exception e) {
|
| | | // }
|
| | | return splashView;
|
| | | }
|
| | |
|