version:cube 4.8

fix:修复截图
update:
This commit is contained in:
2022-06-02 18:14:59 +08:00
parent b01f101613
commit 8ac2a6503f
5 changed files with 58 additions and 50 deletions

View File

@@ -5,6 +5,8 @@ import android.content.Context;
import android.util.Log;
public class ServiceAliveUtils {
private static final String TAG = ServiceAliveUtils.class.getSimpleName();
public static boolean isServiceAlive(Context mContext) {
boolean isServiceRunning = false;
ActivityManager manager =
@@ -17,7 +19,7 @@ public class ServiceAliveUtils {
isServiceRunning = true;
}
}
Log.i("ServiceAliveUtils", mContext.getClass().getName() + "isServiceAlice: " + isServiceRunning);
Log.i(TAG, mContext.getClass().getName() + " :isServiceAlive: " + isServiceRunning);
return isServiceRunning;
}
@@ -33,7 +35,7 @@ public class ServiceAliveUtils {
isServiceRunning = true;
}
}
Log.i("ServiceAliveUtils", serviceName + " :isServiceAlice: " + isServiceRunning);
Log.i(TAG, serviceName + " :isServiceAlive: " + isServiceRunning);
return isServiceRunning;
}
}