Remove fullscreen mode on mobile home screen - #63
Closed
Himanth-reddy wants to merge 3 commits into
Closed
Conversation
Himanth-reddy
marked this pull request as ready for review
March 26, 2026 17:48
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactor the mobile UI to remove forced fullscreen mode on non-player screens. All home, browse, and profile screens now display standard transparent status and navigation bars, while the video player retains its immersive edge-to-edge behavior.
Problem
The app was using
Theme.Leanbackas a parent for all devices, which forcesandroid:windowFullscreen=true. This resulted in a sub-optimal mobile experience where system bars were permanently hidden or poorly integrated, making the app feel "trapped" and inconsistent with standard Android UX.Solution
Theme.ArflixTV.Mobilewhich overrides the fullscreen flag.WindowCompat.setDecorFitsSystemWindows(window, false)(Edge-to-Edge) globally.systemBarsPadding()on the rootColumnfor mobile only. This ensures UI content stays within the safe area while the background gradient bleeds seamlessly behind the transparent bars.DisposableEffectinPlayerScreento hide system bars only during playback on mobile.Changes
app/src/main/res/values/themes.xmlTheme.ArflixTV.Mobileinheriting from the main theme but withwindowFullscreen=falseand transparent bar colors.Theme.ArflixTV.Splashto use the mobile theme aspostSplashScreenTheme.app/src/main/kotlin/com/arflix/tv/MainActivity.kt.background()->.systemBarsPadding()to allow the background to fill the status/nav bar areas.app/src/main/kotlin/com/arflix/tv/ui/screens/player/PlayerScreen.ktDisposableEffectto manage immersive mode specifically for the mobile video player, ensuring it returns to normal once dismissed.Verification
systemBarsPadding.