From eb9c5f95dbfd37802e5a9a8610f009b6e0f10b4b Mon Sep 17 00:00:00 2001 From: NoodleMage Date: Tue, 26 Apr 2016 22:56:49 +0200 Subject: [PATCH] Removed automatic update + duplicate fix --- .../ui/setting/SettingsAboutFragment.kt | 21 +++++++------------ app/src/main/res/xml/pref_about.xml | 12 +++++------ 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt index edefee6b2..7c98fa71d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsAboutFragment.kt @@ -8,7 +8,6 @@ import eu.kanade.tachiyomi.BuildConfig import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.updater.GithubUpdateChecker import eu.kanade.tachiyomi.data.updater.UpdateDownloader -import eu.kanade.tachiyomi.data.updater.UpdateDownloaderAlarm import eu.kanade.tachiyomi.util.toast import rx.Subscription import rx.android.schedulers.AndroidSchedulers @@ -57,19 +56,13 @@ class SettingsAboutFragment : SettingsNestedFragment() { true } - automaticUpdateToggle.isEnabled = true - automaticUpdateToggle.setOnPreferenceChangeListener { preference, any -> - val status = any as Boolean - UpdateDownloaderAlarm.startAlarm(activity, 12, status) - true - } - - automaticUpdateToggle.isEnabled = true - automaticUpdateToggle.setOnPreferenceChangeListener { preference, any -> - val status = any as Boolean - UpdateDownloaderAlarm.startAlarm(activity, 12, status) - true - } + //TODO One glorious day enable this and add the magnificent option for auto update checking. + // automaticUpdateToggle.isEnabled = true + // automaticUpdateToggle.setOnPreferenceChangeListener { preference, any -> + // val status = any as Boolean + // UpdateDownloaderAlarm.startAlarm(activity, 12, status) + // true + // } } buildTime.summary = getFormattedBuildTime() diff --git a/app/src/main/res/xml/pref_about.xml b/app/src/main/res/xml/pref_about.xml index 8012999aa..e4df24e83 100644 --- a/app/src/main/res/xml/pref_about.xml +++ b/app/src/main/res/xml/pref_about.xml @@ -8,12 +8,12 @@ android:summary="@string/pref_acra_summary" android:title="@string/pref_enable_acra"/> - + + + + + +