android / android/codelab-exoplayer-intro

hideSystemUI method is deprecated ?

Open
#55 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
235
Forks
129
PR merge metrics
No merged PRs in 30d

Description

I am trying to follow this step in here https://developer.android.com/codelabs/exoplayer-intro#2

but when I implement `hideSystemUi` method in Kotlin. then code seems deprecated
like this https://i.stack.imgur.com/uqAUP.png

```
@SuppressLint("InlinedApi")
private fun hideSystemUi() {
playerView.systemUiVisibility = (View.SYSTEM_UI_FLAG_LOW_PROFILE
or View.SYSTEM_UI_FLAG_FULLSCREEN
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)
}
```

how to solve this ?

Contributor guide

Open the contributing guide

Research direction

Start with step 2 of the linked ExoPlayer codelab and inspect the hideSystemUi method, especially playerView.systemUiVisibility and the listed system UI flags. Determine the current non-deprecated Android API for this example, update the codelab guidance, and confirm the deprecation warning is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.