File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/src/main/java/com/paulcoding/hviewer/worker Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import androidx.core.app.NotificationCompat
88import androidx.work.CoroutineWorker
99import androidx.work.Data
1010import androidx.work.WorkerParameters
11+ import com.paulcoding.hviewer.BuildConfig
1112import com.paulcoding.hviewer.CHECK_FOR_UPDATE_CHANNEL
1213import com.paulcoding.hviewer.MainActivity
1314import com.paulcoding.hviewer.R
@@ -63,10 +64,12 @@ class UpdateScriptsWorker(
6364 }
6465
6566 else -> {
66- notificationBuilder
67- .setContentTitle(" Up to date" )
68- .setContentText(LocalDateTime .now().toString())
69- notificationManager.notify(Random .nextInt(2 , 100 ), notificationBuilder.build())
67+ if (BuildConfig .DEBUG ) {
68+ notificationBuilder
69+ .setContentTitle(" Up to date" )
70+ .setContentText(LocalDateTime .now().toString())
71+ notificationManager.notify(Random .nextInt(2 , 100 ), notificationBuilder.build())
72+ }
7073 }
7174 }
7275 }
You can’t perform that action at this time.
0 commit comments