From 6d32fdf087d4dfdeadfaf35399ea8dab6212792f Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 18 Apr 2025 18:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E7=BB=B4=E6=97=A5=E5=BF=97=E5=A6=82?= =?UTF-8?q?=E6=9E=9C6=E5=B0=8F=E6=97=B6=E6=9C=AA=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=EF=BC=8C=E5=88=99=E9=87=8D=E5=90=AF=E8=BF=90=E7=BB=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/xypower/mpapp/MicroPhotoService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java b/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java index 5536d7ad..96e45cdd 100644 --- a/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java +++ b/app/src/main/java/com/xypower/mpapp/MicroPhotoService.java @@ -406,8 +406,8 @@ public class MicroPhotoService extends Service { try { File mpmstLogFile = new File(MicroPhotoContext.buildMasterAppDir(context) + "logs/mlog.txt"); long mlogTime = mpmstLogFile.exists() ? mpmstLogFile.lastModified() : 0; - if ((ts - mlogTime) > 1800000 /*86400000*/) { - // More than 1 day, try restart it + if ((ts - mlogTime) > 21600000) { + // More than 6 hours, try restart it Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPMASTER); if (launchIntent != null) { launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);