Skip to content

Commit

Permalink
fix: Write correct description when battery optimisation is disabled (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
nikclayton authored Aug 30, 2024
1 parent 8d87005 commit 874cb55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 874cb55

Please sign in to comment.