revert notification channel name

This commit is contained in:
lucky 2022-01-25 21:22:16 +03:00
parent 44137fcc37
commit ea1c343c6c
3 changed files with 4 additions and 2 deletions

View File

@ -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())
}
}

View File

@ -19,6 +19,7 @@
<string name="wipe_on_inactivity_switch">Стереть при неактивности</string>
<string name="wipe_on_inactivity_description">Стереть данные когда устройство не разблокируется N дней.</string>
<string name="wipe_on_inactivity_days">Дней</string>
<string name="notification_channel_default_name">Дефолт</string>
<string name="ok">OK</string>
<string name="wipe_job_description">Стереть данные при неактивности</string>
<string name="wipe_job_schedule_failed_popup">Не удалось запланировать сервис стирания данных</string>

View File

@ -19,6 +19,7 @@
<string name="wipe_on_inactivity_switch">Wipe on inactivity</string>
<string name="wipe_on_inactivity_description">Wipe a device when it was not unlocked for N days.</string>
<string name="wipe_on_inactivity_days">Days</string>
<string name="notification_channel_default_name">Default</string>
<string name="ok">OK</string>
<string name="wipe_job_description">Wipe a device on inactivity</string>
<string name="wipe_job_schedule_failed_popup">Failed to schedule a wipe job</string>