Skip to content

Commit

Permalink
Don't clobber any UI flags set by the activity
Browse files Browse the repository at this point in the history
  • Loading branch information
neilisaac committed Nov 10, 2013
1 parent d87c0b5 commit 45369e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/settlers/hd/GameView.java
Expand Up @@ -36,7 +36,7 @@ public GameView(Context context) {
gesture = new GestureDetector(context, this);
pinch = new ScaleGestureDetector(context, this);

setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
setSystemUiVisibility(getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LOW_PROFILE);

buttons = new UIButton[UIButton.Type.values().length];
int size = (int) (0.5 * Geometry.BUTTON_SIZE * getResources().getDisplayMetrics().density);
Expand Down Expand Up @@ -90,7 +90,7 @@ public boolean onFling(MotionEvent e1, MotionEvent e2, float vx, float vy) {

@Override
public boolean onDown(MotionEvent event) {
setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
setSystemUiVisibility(getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LOW_PROFILE);

// press down (consider activating buttons)
press((int) event.getX(), (int) event.getY());
Expand Down

0 comments on commit 45369e1

Please sign in to comment.