Skip to content

Commit 704d608

Browse files
committed
use numbers instead of constants
1 parent b7f9745 commit 704d608

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
492492

493493
if (fullScreen) {
494494
int visibility;
495-
if (SDK < android.os.Build.VERSION_CODES.KITKAT) {
495+
if (SDK < 19) {
496496
// Pre-4.4
497497
visibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
498498
} else {
@@ -861,7 +861,7 @@ public void onWindowFocusChanged(boolean hasFocus) {
861861

862862
@Override
863863
public boolean onTouchEvent(MotionEvent event) {
864-
if (fullScreen && SDK < android.os.Build.VERSION_CODES.KITKAT) {
864+
if (fullScreen && SDK < 19) {
865865
// The best we can do pre-KitKat to keep the navigation bar hidden
866866
surfaceView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
867867
}
@@ -1043,7 +1043,7 @@ public void onWindowFocusChanged(boolean hasFocus) {
10431043

10441044
@Override
10451045
public boolean onTouchEvent(MotionEvent event) {
1046-
if (fullScreen && SDK < android.os.Build.VERSION_CODES.KITKAT) {
1046+
if (fullScreen && SDK < 19) {
10471047
// The best we can do pre-KitKat to keep the navigation bar hidden
10481048
surfaceView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
10491049
}

0 commit comments

Comments
 (0)