Merge remote-tracking branch 'origin/powerbell' into appbase

This commit is contained in:
ZhanGSKen 2025-05-04 13:23:10 +08:00
commit 03ceaf3e2a
3 changed files with 19 additions and 8 deletions

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Tue Apr 29 12:41:13 GMT 2025 #Sat May 03 06:21:11 GMT 2025
stageCount=0 stageCount=1
libraryProject= libraryProject=
baseVersion=15.3 baseVersion=15.3
publishVersion=15.3.0 publishVersion=15.3.0
buildCount=4 buildCount=5
baseBetaVersion=15.3.1 baseBetaVersion=15.3.1

View File

@ -32,6 +32,8 @@ import cc.winboll.studio.powerbell.utils.AppConfigUtils;
import cc.winboll.studio.powerbell.utils.NotificationHelper; import cc.winboll.studio.powerbell.utils.NotificationHelper;
import cc.winboll.studio.powerbell.utils.ServiceUtils; import cc.winboll.studio.powerbell.utils.ServiceUtils;
import cc.winboll.studio.powerbell.utils.StringUtils; import cc.winboll.studio.powerbell.utils.StringUtils;
import android.os.Handler;
import android.os.Looper;
public class ControlCenterService extends Service { public class ControlCenterService extends Service {
@ -114,9 +116,17 @@ public class ControlCenterService extends Service {
mControlCenterServiceReceiver = new ControlCenterServiceReceiver(this); mControlCenterServiceReceiver = new ControlCenterServiceReceiver(this);
mControlCenterServiceReceiver.registerAction(this); mControlCenterServiceReceiver.registerAction(this);
} }
startRemindThread(mAppConfigUtils.mAppConfigBean);
ToastUtils.show("Service Is Start."); new Handler(Looper.getMainLooper()).postDelayed(new Runnable(){
LogUtils.i(TAG, "Service Is Start.");
@Override
public void run() {
startRemindThread(mAppConfigUtils.mAppConfigBean);
ToastUtils.show("Service Is Start.");
LogUtils.i(TAG, "Service Is Start.");
}
}, 2000);
} }
} }

View File

@ -83,8 +83,9 @@ public class NotificationHelper {
Notification notification = new NotificationCompat.Builder(mContext, CHANNEL_ID_FOREGROUND) Notification notification = new NotificationCompat.Builder(mContext, CHANNEL_ID_FOREGROUND)
.setSmallIcon(R.drawable.ic_launcher) .setSmallIcon(R.drawable.ic_launcher)
.setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), R.drawable.ic_launcher)) .setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), R.drawable.ic_launcher))
.setContentTitle(title) //.setContentTitle(title + "\n" + content)
.setContentText(content) .setContentTitle(content)
//.setContentText(content)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_LOW) .setPriority(NotificationCompat.PRIORITY_LOW)
.setOngoing(true) .setOngoing(true)