Introduce preference to use CI update channel

This commit is contained in:
tarsin committed 2023-07-05 07:51:29 +08:00
1 parent bfbe6b8e6a
commit 1eeab2f03d
4 files changed
+8

No files matched your search

@@ -42,6 +42,7 @@ object Settings : DataStorePreferences(null) {
var meteredNetworkWarning by boolPref("cellular_network_warning", false)
var appLinkVerifyTip by boolPref("app_link_verify_tip", false)
var enabledSecurity by boolPref("enable_secure", false)
var useCIUpdateChannel by boolPref("ci_update_channel", false)
var mediaScan by boolPref("media_scan", false).observed { updateWhenKeepMediaStatusChanges() }
var hasDefaultDownloadLabel by boolPref("has_default_download_label", false)
var qSSaveProgress by boolPref("qs_save_progress", true)
@@ -18,6 +18,7 @@ import androidx.compose.ui.res.stringResource
import androidx.core.text.parseAsHtml
import com.hippo.ehviewer.BuildConfig
import com.hippo.ehviewer.R
import com.hippo.ehviewer.Settings
import com.hippo.ehviewer.ui.LICENSE_SCREEN
import com.hippo.ehviewer.ui.LocalNavController
import com.hippo.ehviewer.ui.tools.toAnnotatedString
@@ -74,6 +75,10 @@ fun AboutScreen() {
title = stringResource(id = R.string.settings_about_version),
summary = versionCode(),
)
SwitchPreference(
title = stringResource(id = R.string.use_ci_update_channel),
value = Settings::useCIUpdateChannel,
)
Preference(title = stringResource(id = R.string.settings_about_check_for_updates))
}
}