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

@@ -42,12 +42,14 @@ public class RemoteService extends Service {
@Override
public List<String> getHideIcon() throws RemoteException {
return JGYUtils.getInstance().getHidePackage();
List<String> hide = JGYUtils.getInstance().getHidePackage();
return hide;
}
@Override
public List<String> getDisableIcon() throws RemoteException {
return JGYUtils.getInstance().getDisablePackage();
List<String> disable = JGYUtils.getInstance().getDisablePackage();
return disable;
}
};

View File

@@ -977,9 +977,9 @@ public class MessageReceiver extends XGPushBaseReceiver {
}
public void screenshot(String s) {
JSONObject jSONObject = JSON.parseObject(s);
long createTime = jSONObject.getLong("createTime");
// JSONObject jSONObject = JSON.parseObject(s);
// long createTime = jSONObject.getLong("createTime");
long createTime = System.currentTimeMillis() / 1000;
PowerManager.WakeLock mWakeLock = JGYUtils.acquireWakeLock(mContext, 60 * 1000);
JGYUtils.release(mWakeLock);
if (createTime != 0) {

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;
}
}