mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix 24hr time format bug on older OSes.
This commit is contained in:
@@ -52,11 +52,11 @@ object NotificationProfiles {
|
||||
if (storeValues.manuallyEnabledUntil.isForever()) {
|
||||
return context.getString(R.string.NotificationProfilesFragment__on)
|
||||
} else if (now < storeValues.manuallyEnabledUntil) {
|
||||
return context.getString(R.string.NotificationProfileSelection__on_until_s, storeValues.manuallyEnabledUntil.toLocalTime().formatHours())
|
||||
return context.getString(R.string.NotificationProfileSelection__on_until_s, storeValues.manuallyEnabledUntil.toLocalTime().formatHours(context))
|
||||
}
|
||||
}
|
||||
|
||||
return context.getString(R.string.NotificationProfileSelection__on_until_s, profile.schedule.endTime().formatHours())
|
||||
return context.getString(R.string.NotificationProfileSelection__on_until_s, profile.schedule.endTime().formatHours(context))
|
||||
}
|
||||
|
||||
private fun Long.isForever(): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user