mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-07-22 11:11:02 +00:00
Account settings UI: fix "sync only manually" summary
This commit is contained in:
parent
d6ff27fcc8
commit
76df2b320d
|
@ -333,7 +333,11 @@ class AccountSettingsActivity: AppCompatActivity() {
|
|||
Setting(
|
||||
icon = icon,
|
||||
name = stringResource(name),
|
||||
summary = stringResource(R.string.settings_sync_summary_periodically, syncInterval / 60),
|
||||
summary =
|
||||
if (syncInterval == AccountSettings.SYNC_INTERVAL_MANUALLY)
|
||||
stringResource(R.string.settings_sync_summary_manually)
|
||||
else
|
||||
stringResource(R.string.settings_sync_summary_periodically, syncInterval / 60),
|
||||
onClick = {
|
||||
showSyncIntervalDialog = true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue