Commit 5ecf6b0f authored by wanglei's avatar wanglei

...

parent 61944cdb
...@@ -14,6 +14,7 @@ import android.os.HandlerThread ...@@ -14,6 +14,7 @@ import android.os.HandlerThread
import android.widget.RemoteViews import android.widget.RemoteViews
import androidx.core.app.NotificationCompat import androidx.core.app.NotificationCompat
import androidx.core.graphics.drawable.IconCompat import androidx.core.graphics.drawable.IconCompat
import com.base.filerecoveryrecyclebin.BuildConfig
import com.base.filerecoveryrecyclebin.MyApplication import com.base.filerecoveryrecyclebin.MyApplication
import com.base.filerecoveryrecyclebin.R import com.base.filerecoveryrecyclebin.R
import com.base.filerecoveryrecyclebin.activity.splash.Splash2Activity import com.base.filerecoveryrecyclebin.activity.splash.Splash2Activity
...@@ -371,9 +372,12 @@ object NotificationUtil { ...@@ -371,9 +372,12 @@ object NotificationUtil {
fun sendNotification(context: Context, where: String = "") { fun sendNotification(context: Context, where: String = "") {
val actionId: Int = getNextNotificationId() val actionId: Int = getNextNotificationId()
if (!BuildConfig.DEBUG){
if (MyApplication.PAUSED_VALUE == 1) { if (MyApplication.PAUSED_VALUE == 1) {
return return
} }
}
val maxShowNotificationCount = val maxShowNotificationCount =
AppPreferences.getInstance().getString("maxShowNotificationCount", "200").toInt() AppPreferences.getInstance().getString("maxShowNotificationCount", "200").toInt()
val todayShowCount = val todayShowCount =
......
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