perf: optimize by removing unnecessary animations on Android, closes #1360 (#1365)

This commit is contained in:
Huang Xin
2025-06-07 12:53:53 +08:00
committed by GitHub
parent 56f4b275f4
commit 5bdc29fe84
2 changed files with 3 additions and 1 deletions
@@ -13,11 +13,13 @@
android:largeHeap="true"
android:label="@string/app_name"
android:theme="@style/Theme.readest"
android:hardwareAccelerated="true"
android:usesCleartextTraffic="${usesCleartextTraffic}">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:launchMode="singleTask"
android:label="@string/main_activity_title"
android:hardwareAccelerated="true"
android:name=".MainActivity"
android:exported="true">
@@ -260,7 +260,7 @@ export const UpdaterContent = ({ version }: { version?: string }) => {
}
};
if (!isMounted) {
if (!isMounted || !update) {
return null;
}