0

I use this code to hide navigation bar:

this.window.decorView.systemUiVisibility = (
                View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY)

But navigation bar shows up after minimizing app and going back to it? Is it possible to avoid that?

Pranciskus
  • 487
  • 1
  • 6
  • 17

1 Answers1

0

Put the above code in onResume() and try

Vijay Patole
  • 355
  • 3
  • 17