title: View.SYSTEM_UI_FLAG_FULLSCREEN does not work properly
body: <p>I'm quite new in Android development. In my application, I use a class that is a part of all my activities. It allows me to define that all my application will be in full screen mode.</p>
  
  <p>Here is the code of this class :</p>
  
  <pre><code>package com.retroverse.bataille_corse;
  
  import android.os.Build;
  import android.os.Bundle;
  import android.view.View;
  import androidx.appcompat.app.AppCompatActivity;
  
  public class FullScreenActivity extends AppCompatActivity {
      @Override
      protected void onResume() {
          super.onResume();
          if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.KITKAT) {
              this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                      | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                      | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                      | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                      | View.SYSTEM_UI_FLAG_FULLSCREEN);
          }
      }
  }
  </code></pre>
  
  <p>The full screen mode works perfectly, except in a very specific case. When I'm in my application, I press the "home" button of the navigation bar, then when I want to resume the application (only like this) by clicking on the "app menu" button of the navigation bar (when you see the applications that are still open) and resume the application, the notification bar reappears when it shouldn't (and only it, there's never any problem with the navigation bar)... But it disappears when I change activity.</p>
  
  <p>Here is a video to better understand : <a href="https://drive.google.com/open?id=1FPoADemhLcPfxnohQdfYOpb6wkxQTx5q" rel="nofollow noreferrer">https://drive.google.com/open?id=1FPoADemhLcPfxnohQdfYOpb6wkxQTx5q</a></p>
  
  <p>I also tried adding</p>
  
  <pre><code>| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
  | View.SYSTEM_UI_FLAG_LOW_PROFILE
  </code></pre>
  
  <p>But it didn't change anything (besides I don't really know what these 2 views are for)...</p>
  
  <p>I really need help, thanks!!</p>