Removed automatic update + duplicate fix
This commit is contained in:
parent
55e9d2880c
commit
eb9c5f95db
@ -8,7 +8,6 @@ import eu.kanade.tachiyomi.BuildConfig
|
|||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import eu.kanade.tachiyomi.data.updater.GithubUpdateChecker
|
import eu.kanade.tachiyomi.data.updater.GithubUpdateChecker
|
||||||
import eu.kanade.tachiyomi.data.updater.UpdateDownloader
|
import eu.kanade.tachiyomi.data.updater.UpdateDownloader
|
||||||
import eu.kanade.tachiyomi.data.updater.UpdateDownloaderAlarm
|
|
||||||
import eu.kanade.tachiyomi.util.toast
|
import eu.kanade.tachiyomi.util.toast
|
||||||
import rx.Subscription
|
import rx.Subscription
|
||||||
import rx.android.schedulers.AndroidSchedulers
|
import rx.android.schedulers.AndroidSchedulers
|
||||||
@ -57,19 +56,13 @@ class SettingsAboutFragment : SettingsNestedFragment() {
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
automaticUpdateToggle.isEnabled = true
|
//TODO One glorious day enable this and add the magnificent option for auto update checking.
|
||||||
automaticUpdateToggle.setOnPreferenceChangeListener { preference, any ->
|
// automaticUpdateToggle.isEnabled = true
|
||||||
val status = any as Boolean
|
// automaticUpdateToggle.setOnPreferenceChangeListener { preference, any ->
|
||||||
UpdateDownloaderAlarm.startAlarm(activity, 12, status)
|
// val status = any as Boolean
|
||||||
true
|
// UpdateDownloaderAlarm.startAlarm(activity, 12, status)
|
||||||
}
|
// true
|
||||||
|
// }
|
||||||
automaticUpdateToggle.isEnabled = true
|
|
||||||
automaticUpdateToggle.setOnPreferenceChangeListener { preference, any ->
|
|
||||||
val status = any as Boolean
|
|
||||||
UpdateDownloaderAlarm.startAlarm(activity, 12, status)
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTime.summary = getFormattedBuildTime()
|
buildTime.summary = getFormattedBuildTime()
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
android:summary="@string/pref_acra_summary"
|
android:summary="@string/pref_acra_summary"
|
||||||
android:title="@string/pref_enable_acra"/>
|
android:title="@string/pref_enable_acra"/>
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<!--<SwitchPreferenceCompat-->
|
||||||
android:defaultValue="false"
|
<!--android:defaultValue="false"-->
|
||||||
android:enabled="false"
|
<!--android:enabled="false"-->
|
||||||
android:key="@string/pref_enable_automatic_updates_key"
|
<!--android:key="@string/pref_enable_automatic_updates_key"-->
|
||||||
android:summary="@string/pref_enable_automatic_updates_summary"
|
<!--android:summary="@string/pref_enable_automatic_updates_summary"-->
|
||||||
android:title="@string/pref_enable_automatic_updates"/>
|
<!--android:title="@string/pref_enable_automatic_updates"/>-->
|
||||||
|
|
||||||
<Preference
|
<Preference
|
||||||
android:key="@string/pref_version"
|
android:key="@string/pref_version"
|
||||||
|
Loading…
Reference in New Issue
Block a user