Add more checking frequencies, use DurationListPreference
This commit is contained in:
parent
0397a3120f
commit
40ea51e622
5 changed files with 22 additions and 26 deletions
|
|
@ -19,10 +19,10 @@ data class ScheduleOptions(
|
|||
fun from(context: Context): ScheduleOptions {
|
||||
val preferences = PreferenceManager.getDefaultSharedPreferences(context)
|
||||
return ScheduleOptions(
|
||||
interval = TimeUnit.HOURS.toMillis(
|
||||
interval = TimeUnit.SECONDS.toMillis(
|
||||
preferences.getString(
|
||||
context.getString(R.string.streams_notifications_interval_key),
|
||||
context.getString(R.string.streams_notifications_interval_default)
|
||||
null
|
||||
)?.toLongOrNull() ?: context.getString(
|
||||
R.string.streams_notifications_interval_default
|
||||
).toLong()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue