Complete auto updates checker (#449)

* Complete auto updates checker

* Use GcmTaskService for the periodical updates checker

* Persist task across reinstalls

* Hide setting instead of disabling

* Minor refactor
This commit is contained in:
inorichi
2016-09-07 19:44:55 +02:00
committed by GitHub
parent a4b71f4d11
commit ccdc336112
14 changed files with 384 additions and 381 deletions
@@ -78,7 +78,7 @@ class PreferenceKeys(context: Context) {
val filterUnread = context.getString(R.string.pref_filter_unread_key)
val automaticUpdateStatus = context.getString(R.string.pref_enable_automatic_updates_key)
val automaticUpdates = context.getString(R.string.pref_enable_automatic_updates_key)
val startScreen = context.getString(R.string.pref_start_screen_key)
@@ -130,6 +130,6 @@ class PreferencesHelper(context: Context) {
fun filterUnread() = rxPrefs.getBoolean(keys.filterUnread, false)
fun automaticUpdateStatus() = prefs.getBoolean(keys.automaticUpdateStatus, false)
fun automaticUpdates() = prefs.getBoolean(keys.automaticUpdates, false)
}