hide virtual button correctly

This commit is contained in:
minggo 2016-06-15 18:33:52 +08:00
parent d94dc7edc0
commit 7bf13f34cd
1 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ public abstract class Cocos2dxActivity extends Activity implements Cocos2dxHelpe
protected void hideVirtualButton() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
@ -426,7 +426,7 @@ public abstract class Cocos2dxActivity extends Activity implements Cocos2dxHelpe
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
| View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
| View.SYSTEM_UI_FLAG_IMMERSIVE);
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
}
}