mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: Option to not show screenshots
This commit is contained in:
parent
2275b978b8
commit
487a0a206f
@ -27,6 +27,7 @@ object Preferences {
|
||||
Key.InstallAfterSync,
|
||||
Key.IncompatibleVersions,
|
||||
Key.ListAnimation,
|
||||
Key.ShowScreenshots,
|
||||
Key.UpdatedApps,
|
||||
Key.NewApps,
|
||||
Key.ProxyHost,
|
||||
@ -148,6 +149,9 @@ object Preferences {
|
||||
object ListAnimation :
|
||||
Key<Boolean>("list_animation", Value.BooleanValue(false))
|
||||
|
||||
object ShowScreenshots :
|
||||
Key<Boolean>("show_screenshots", Value.BooleanValue(true))
|
||||
|
||||
object UpdatedApps : Key<Int>("updated_apps", Value.IntValue(100))
|
||||
object NewApps : Key<Int>("new_apps", Value.IntValue(20))
|
||||
|
||||
@ -159,7 +163,8 @@ object Preferences {
|
||||
)
|
||||
|
||||
object RootPermission : Key<Boolean>("root_permission", Value.BooleanValue(false))
|
||||
object RootSessionInstaller : Key<Boolean>("root_session_installer", Value.BooleanValue(false))
|
||||
object RootSessionInstaller :
|
||||
Key<Boolean>("root_session_installer", Value.BooleanValue(false))
|
||||
|
||||
object SortOrder : Key<Preferences.SortOrder>(
|
||||
"sort_order",
|
||||
|
@ -538,6 +538,7 @@ class AppSheetX() : FullscreenBottomSheetDialogFragment(), Callbacks {
|
||||
})
|
||||
}
|
||||
}
|
||||
if (Preferences[Preferences.Key.ShowScreenshots]) {
|
||||
item {
|
||||
ScreenshotList(screenShots = suggestedProductRepo.first.screenshots.map {
|
||||
ScreenshotItem(
|
||||
@ -549,6 +550,7 @@ class AppSheetX() : FullscreenBottomSheetDialogFragment(), Callbacks {
|
||||
onScreenshotClick(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
item {
|
||||
// TODO add markdown parsing
|
||||
if (product.description.isNotEmpty()) HtmlTextBlock(description = product.description)
|
||||
|
@ -48,6 +48,10 @@ class PrefsUserFragment : PrefsNavFragmentX() {
|
||||
Preferences.Key.ListAnimation, getString(R.string.list_animation),
|
||||
getString(R.string.list_animation_description)
|
||||
)
|
||||
addSwitch(
|
||||
Preferences.Key.ShowScreenshots, getString(R.string.show_screenshots),
|
||||
getString(R.string.show_screenshots_description)
|
||||
)
|
||||
addEditInt(Preferences.Key.UpdatedApps, getString(R.string.prefs_updated_apps), 1..200)
|
||||
addEditInt(Preferences.Key.NewApps, getString(R.string.prefs_new_apps), 1..50)
|
||||
}
|
||||
|
@ -198,4 +198,6 @@
|
||||
<string name="dialog_approve">Turn off</string><string name="root_session_installer">Use root session installer</string>
|
||||
<string name="root_session_installer_description">The session installer is a bit less performant that the legacy one, but avoids issues with installed apps in Android +13.</string>
|
||||
<string name="no_action_possible">No Action Possible</string>
|
||||
<string name="show_screenshots">Show screenshots</string>
|
||||
<string name="show_screenshots_description">Whether to show screenshots in the app sheet or not.</string>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user