mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: Prefs entries to Pages
This commit is contained in:
parent
1fbe6e5c69
commit
24063364b7
@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.machiav3lli.fdroid.R
|
||||
import com.machiav3lli.fdroid.content.Preferences
|
||||
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
|
||||
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
|
||||
|
||||
@ -29,8 +30,12 @@ fun PrefsOtherPage() {
|
||||
dialogPref = pref
|
||||
openDialog.value = true
|
||||
}
|
||||
//val proxyPrefs = listOf()
|
||||
//val infoPrefs = listOf()
|
||||
val proxyPrefs = listOf(
|
||||
Preferences.Key.ProxyType,
|
||||
Preferences.Key.ProxyHost,
|
||||
Preferences.Key.ProxyPort,
|
||||
)
|
||||
val infoPrefs = emptyList<Preferences.Key<*>>()
|
||||
|
||||
Scaffold(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
|
@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.machiav3lli.fdroid.R
|
||||
import com.machiav3lli.fdroid.content.Preferences
|
||||
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
|
||||
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
|
||||
|
||||
@ -29,7 +30,18 @@ fun PrefsPersonalPage() {
|
||||
dialogPref = pref
|
||||
openDialog.value = true
|
||||
}
|
||||
//val personalPrefs = listOf()
|
||||
val personalPrefs = listOf(
|
||||
Preferences.Key.Language,
|
||||
Preferences.Key.Theme,
|
||||
Preferences.Key.DefaultTab,
|
||||
Preferences.Key.ShowScreenshots,
|
||||
Preferences.Key.UpdatedApps,
|
||||
Preferences.Key.NewApps,
|
||||
)
|
||||
val cachePrefs = listOf(
|
||||
Preferences.Key.ReleasesCacheRetention,
|
||||
Preferences.Key.ImagesCacheRetention,
|
||||
)
|
||||
|
||||
Scaffold(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
|
@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.machiav3lli.fdroid.R
|
||||
import com.machiav3lli.fdroid.content.Preferences
|
||||
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
|
||||
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
|
||||
|
||||
@ -29,9 +30,20 @@ fun PrefsUpdatesPage() {
|
||||
dialogPref = pref
|
||||
openDialog.value = true
|
||||
}
|
||||
//val syncPrefs = listOf()
|
||||
//val downloadPrefs = listOf()
|
||||
//val installationPrefs = listOf()
|
||||
val syncPrefs = listOf(
|
||||
Preferences.Key.AutoSync,
|
||||
Preferences.Key.AutoSyncInterval,
|
||||
)
|
||||
val updatesPrefs = listOf(
|
||||
Preferences.Key.InstallAfterSync,
|
||||
Preferences.Key.UpdateNotify,
|
||||
Preferences.Key.UpdateUnstable,
|
||||
Preferences.Key.IncompatibleVersions,
|
||||
)
|
||||
val installPrefs = listOf(
|
||||
Preferences.Key.RootPermission,
|
||||
Preferences.Key.RootSessionInstaller,
|
||||
)
|
||||
|
||||
Scaffold(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
|
Loading…
x
Reference in New Issue
Block a user