mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 02:13:55 +00:00
fix: notification setting formatting
This commit is contained in:
@@ -25,6 +25,7 @@ import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.statusBarHeight
|
||||
import ani.dantotsu.themes.ThemeManager
|
||||
import java.util.Locale
|
||||
|
||||
class SettingsNotificationActivity : AppCompatActivity() {
|
||||
private lateinit var binding: ActivitySettingsNotificationsBinding
|
||||
@@ -130,7 +131,10 @@ class SettingsNotificationActivity : AppCompatActivity() {
|
||||
val dialog = AlertDialog.Builder(context, R.style.MyPopup)
|
||||
.setTitle(R.string.anilist_notification_filters)
|
||||
.setMultiChoiceItems(
|
||||
types.toTypedArray(),
|
||||
types.map { name ->
|
||||
name.replace("_", " ").lowercase().replaceFirstChar {
|
||||
if (it.isLowerCase()) it.titlecase(Locale.ROOT) else it.toString()
|
||||
} }.toTypedArray(),
|
||||
selected
|
||||
) { _, which, isChecked ->
|
||||
val type = types[which]
|
||||
|
||||
Reference in New Issue
Block a user