Add hitomi.la preferences screen

Add hitomi.la early refresh
Fix some typos in comments
This commit is contained in:
NerdNumber9
2018-04-15 13:35:38 -04:00
parent fb1db914aa
commit aafe863774
9 changed files with 115 additions and 6 deletions

View File

@@ -155,6 +155,8 @@ object PreferenceKeys {
const val eh_showSettingsUploadWarning = "eh_showSettingsUploadWarning1"
const val eh_hl_earlyRefresh = "eh_lh_early_refresh"
const val eh_hl_refreshFrequency = "eh_lh_refresh_frequency"
const val eh_hl_lastRefresh = "eh_lh_last_refresh"

View File

@@ -226,6 +226,8 @@ class PreferencesHelper(val context: Context) {
fun eh_showSettingsUploadWarning() = rxPrefs.getBoolean(Keys.eh_showSettingsUploadWarning, true)
// Default is 24h, refresh daily
fun eh_hl_earlyRefresh() = rxPrefs.getBoolean(Keys.eh_hl_earlyRefresh, false)
fun eh_hl_refreshFrequency() = rxPrefs.getString(Keys.eh_hl_refreshFrequency, "24")
fun eh_hl_lastRefresh() = rxPrefs.getLong(Keys.eh_hl_lastRefresh, 0L)