Aleksandar Ilic
07/24/2025, 2:21 PMAleksandar Ilic
07/24/2025, 2:23 PMPablichjenkov
07/24/2025, 2:33 PMresizableActivity = false
or any other configuration to restrict the Activity to be full screen?
That may be the problem. You have to take care of tablet screens now, after Android 15Aleksandar Ilic
07/24/2025, 2:38 PMfalse
or true
. If manually set the Aspect Ratio in App Info to Full screen, all works fine.
I noticed also that the flickering increases in the speed. It seems like it’s recomposing all the time, unable to decide where to place the screen.Aleksandar Ilic
07/24/2025, 2:42 PMDumitru Preguza
07/24/2025, 2:43 PMChrimaeon
07/24/2025, 3:00 PMAleksandar Ilic
07/24/2025, 3:04 PMAleksandar Ilic
07/24/2025, 3:06 PMonDispose
in LockScreenOrientation
. I should probably add “locks” to every screen in navigation instead of relying on onDispose
to revert back.Dumitru Preguza
07/24/2025, 4:38 PMAleksandar Ilic
07/24/2025, 9:33 PMMohammad Fallah
07/25/2025, 2:37 PMDumitru Preguza
07/25/2025, 2:43 PMAleksandar Ilic
07/25/2025, 3:12 PMonDispose
I was reverting to the original orientation (to avoid customizing every screen). The fix was to move to SideEffect
and just set the screen orientation preference for every screen in the app. With this approach the flicker is gone and it works much better actually.Aleksandar Ilic
07/25/2025, 3:15 PMPablichjenkov
07/25/2025, 7:01 PMAleksandar Ilic
07/25/2025, 9:55 PMSideEffect
. Switching it to the LaunchedEffect
right now, thanks for the hint.