From ea1c343c6ca7ccc0cc54791fa3bac0246bbdf496 Mon Sep 17 00:00:00 2001
From: lucky <>
Date: Tue, 25 Jan 2022 21:22:16 +0300
Subject: [PATCH] revert notification channel name
---
app/src/main/java/me/lucky/wasted/NotificationManager.kt | 4 ++--
app/src/main/res/values-ru/strings.xml | 1 +
app/src/main/res/values/strings.xml | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/src/main/java/me/lucky/wasted/NotificationManager.kt b/app/src/main/java/me/lucky/wasted/NotificationManager.kt
index 5becc0b..23e2c2d 100644
--- a/app/src/main/java/me/lucky/wasted/NotificationManager.kt
+++ b/app/src/main/java/me/lucky/wasted/NotificationManager.kt
@@ -4,7 +4,7 @@ import android.content.Context
import androidx.core.app.NotificationChannelCompat
import androidx.core.app.NotificationManagerCompat
-class NotificationManager(ctx: Context) {
+class NotificationManager(private val ctx: Context) {
companion object {
const val CHANNEL_DEFAULT_ID = "default"
}
@@ -15,6 +15,6 @@ class NotificationManager(ctx: Context) {
manager.createNotificationChannel(NotificationChannelCompat.Builder(
CHANNEL_DEFAULT_ID,
NotificationManagerCompat.IMPORTANCE_LOW,
- ).build())
+ ).setName(ctx.getString(R.string.notification_channel_default_name)).build())
}
}
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 726b285..e8a4df0 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -19,6 +19,7 @@
Стереть при неактивности
Стереть данные когда устройство не разблокируется N дней.
Дней
+ Дефолт
OK
Стереть данные при неактивности
Не удалось запланировать сервис стирания данных
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ea87cad..bde7c2e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -19,6 +19,7 @@
Wipe on inactivity
Wipe a device when it was not unlocked for N days.
Days
+ Default
OK
Wipe a device on inactivity
Failed to schedule a wipe job