title: Prevent showing status bar on ImageView click
body: <p>I have an app that uses an full screen ImageView. I also use the function below to hide the status bar. But when the user click to the image, the status bar show again. How can prevent the status bar appear on user click?</p>
  
  <pre><code>public void HideStatusBar()
      {
          View decorView = getWindow().getDecorView();
          int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN;
          decorView.setSystemUiVisibility(uiOptions);
      }
  
  myImage.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  HideStatusBar();
              }
          });
  </code></pre>
  
  <p>This solution works partially. In the first click the status bar appear and the function OnClick() is NOT called. The function is only called in the second click.</p>