Commit 97362181 authored by maxiaoliang's avatar maxiaoliang

1

parent 84c9b686
......@@ -40,8 +40,8 @@ class MyApplication : BaseApplication() {
}
fun initApp() {
initNotificationWork()
if (ConfigHelper.ifAgreePrivacy) {
initNotificationWork()
MobileAds.initialize(this) { initializationStatus ->
}
InstallHelps.init()
......
......@@ -5,7 +5,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.util.Log;
import com.test.easy.easycleanerjunk.MyApplication;
import com.test.easy.easycleanerjunk.utils.SPUtils;
......@@ -41,7 +40,7 @@ public class ActionBroadcast extends BroadcastReceiver {
case Intent.ACTION_USER_PRESENT:
isLock = false;
if (mIsScreenOn && !isLock) {
int locks = SPUtils.getInstance().getInt("lockS", 0);
int locks = SPUtils.getInstance().getInt("lockS", 1);
if (locks == 1) {
NotificationUtil.sendNotification(MyApplication.context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment