fix: Write correct description when battery optimisation is disabled (#917)

This commit is contained in:
Nik Clayton 2024-08-30 12:30:58 +02:00 committed by GitHub
parent 8d87005669
commit 874cb554a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -410,7 +410,7 @@ class PreferencesFragment : PreferenceFragmentCompat() {
setSummaryProvider {
when {
shouldIgnore -> context.getString(R.string.pref_notification_battery_optimisation_should_ignore)
isIgnoringBatteryOptimisations -> context.getString(R.string.pref_notification_battery_optimisation_remove)
isIgnoringBatteryOptimisations -> context.getString(R.string.pref_notification_battery_optimisation_is_disabled)
else -> context.getString(R.string.pref_notification_battery_optimisation_ok)
}
}

View File

@ -780,7 +780,7 @@
<string name="pref_notification_method_all_push">Kaikki tilit käyttävät Unified Push -puskuilmoituksia. Napauta nähdäksesi tarkemmin.</string>
<string name="pref_title_notification_battery_optimisation">Virrankäytön optimointi</string>
<string name="pref_notification_battery_optimisation_should_ignore">Virrankäytön optimoinnnin tulisi olla pois käytöstä. Napauta avataksesi.</string>
<string name="pref_notification_battery_optimisation_remove">Virrankäytön optimointi on</string>
<string name="pref_notification_battery_optimisation_is_disabled">Virrankäytön optimointi on poistettu käytöstä</string>
<string name="pref_notification_battery_optimisation_ok">Virrankäytön optimointia ei tarvitse poistaa käytöstä.</string>
<string name="pref_notification_method_push">Puskuilmoitus</string>
</resources>
</resources>

View File

@ -693,7 +693,7 @@
<string name="pref_title_notification_battery_optimisation">Battery optimization</string>
<string name="pref_notification_battery_optimisation_should_ignore">Battery optimisation should be disabled. Tap to open.</string>
<string name="pref_notification_battery_optimisation_remove">Battery optimisation is </string>
<string name="pref_notification_battery_optimisation_is_disabled">Battery optimisation is disabled</string>
<string name="pref_notification_battery_optimisation_ok">Battery optimisation does not need to be disabled.</string>
<string name="pref_notification_method_push">Push</string>