Allow disable list item animations on API 29+ (#1024)
* Allow disable list item animations on API 29+ * Update list item animations setting description
This commit is contained in:
1 parent
cf08bfdd9b
commit
666a7e4d77
3 files changed
+9
-12
No files matched your search
@@ -43,7 +43,6 @@ import com.hippo.ehviewer.ui.tools.observed
|
||||
import com.hippo.ehviewer.util.AppConfig
|
||||
import com.hippo.ehviewer.util.Crash
|
||||
import com.hippo.ehviewer.util.ReadableTime
|
||||
import com.hippo.ehviewer.util.isAtLeastQ
|
||||
import com.jamal.composeprefs3.ui.prefs.SwitchPref
|
||||
import com.ramcosta.composedestinations.annotation.Destination
|
||||
import com.ramcosta.composedestinations.annotation.RootGraph
|
||||
@@ -145,15 +144,13 @@ fun AdvancedScreen(navigator: DestinationsNavigator) {
|
||||
title = stringResource(id = R.string.preload_thumb_aggressively),
|
||||
value = Settings::preloadThumbAggressively,
|
||||
)
|
||||
if (!isAtLeastQ) {
|
||||
var animateItems by Settings.animateItems.asMutableState()
|
||||
SwitchPref(
|
||||
checked = animateItems,
|
||||
onMutate = { animateItems = !animateItems },
|
||||
title = stringResource(id = R.string.animate_items),
|
||||
summary = stringResource(id = R.string.animate_items_summary),
|
||||
)
|
||||
}
|
||||
var animateItems by Settings.animateItems.asMutableState()
|
||||
SwitchPref(
|
||||
checked = animateItems,
|
||||
onMutate = { animateItems = !animateItems },
|
||||
title = stringResource(id = R.string.animate_items),
|
||||
summary = stringResource(id = R.string.animate_items_summary),
|
||||
)
|
||||
IntSliderPreference(
|
||||
maxValue = 5,
|
||||
minValue = 1,
|
||||
|
||||
@@ -478,7 +478,7 @@
|
||||
<string name="account_name">账户</string>
|
||||
<string name="preload_thumb_aggressively">激进地预载缩略图</string>
|
||||
<string name="animate_items">列表项目动画</string>
|
||||
<string name="animate_items_summary">如果应用崩溃请尝试禁用此项</string>
|
||||
<string name="animate_items_summary">如遇崩溃/掉帧请尝试禁用此项</string>
|
||||
<string name="auto_updates">自动检查更新</string>
|
||||
<string name="update_frequency_never">从不</string>
|
||||
<string name="update_frequency_daily">每天</string>
|
||||
|
||||
@@ -533,7 +533,7 @@
|
||||
<string name="account_name">Account</string>
|
||||
<string name="preload_thumb_aggressively">Preload thumbs aggressively</string>
|
||||
<string name="animate_items">List item animations</string>
|
||||
<string name="animate_items_summary">Try disabling this if you are facing crashes</string>
|
||||
<string name="animate_items_summary">Try disabling this if you are facing crashes / frame drops</string>
|
||||
<string name="user_agent">User Agent</string>
|
||||
<string name="auto_updates">Automatically check for updates</string>
|
||||
<string name="update_frequency_never">Never</string>
|
||||
|
||||
Reference in new issue
Block a user