From dce7e7ece69cb4037830e2ef104728d0998ce1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Resul=20=C3=96v=C3=BCr?= <92828257+ovurrsl@users.noreply.github.com> Date: Fri, 16 Oct 2026 16:50:28 +0300 Subject: [PATCH] fix: the store sign-in page keeps its place when the display density changes (#886) * fix: the store sign-in page keeps its place when the display density changes StoreLoginActivity sized its toolbar and error panel in code with dp(), so it was left out of the density change and a fold between two displays of different density still recreated it and reloaded the sign-in page. Handle density in the manifest and apply the dp sizes again in onConfigurationChanged. Checked on the foldable emulator with the GOG sign-in open: wm density 420 -> 560 -> 320 does not relaunch the activity, the page stays, and the top bar follows the new density. * fix: re-apply the sign-in text sizes together with the other dp sizes The title (16sp) and error text (15sp) were set in sp at creation, so after a density change they kept the old scale. Set them again in onConfigurationChanged. --------- Co-authored-by: ovurrsl --- app/src/main/AndroidManifest.xml | 2 +- .../launcher/stores/StoreLoginActivity.kt | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index bb614006a..bbcece3f6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -123,7 +123,7 @@ android:name=".stores.StoreLoginActivity" android:exported="false" android:screenOrientation="sensorLandscape" - android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize" + android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|density" android:theme="@style/AppTheme" />