fix: Write correct description when battery optimisation is disabled (#917)
This commit is contained in:
parent
8d87005669
commit
874cb554a4
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue