Skip to content

Commit d85ca24

Browse files
committed
use visibility with all flags
1 parent dc174b6 commit d85ca24

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

core/src/processing/core/PApplet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,6 @@ private void setFullScreenVisibility() {
510510
// However, this visibility does not fix a bug where the navigation area
511511
// turns black after resuming the app:
512512
// https://code.google.com/p/android/issues/detail?id=170752
513-
514-
visibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | 4096;
515513
}
516514
surface.setSystemUiVisibility(visibility);
517515
}

src/processing/mode/android/AndroidBuild.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,7 @@ private void writeFragmentActivity(final File srcDirectory) {
988988
final PrintWriter writer = PApplet.createWriter(mainActivityFile);
989989
writer.println("package " + manifest.getPackageName() +";");
990990
writer.println("import android.app.Activity;");
991-
writer.println("import android.os.Bundle;");
992-
writer.println("import android.view.Window;");
991+
writer.println("import android.os.Bundle;");
993992
writer.println("import android.view.View;");
994993
writer.println("import android.view.ViewGroup;");
995994
writer.println("import android.widget.FrameLayout;");
@@ -1002,8 +1001,7 @@ private void writeFragmentActivity(final File srcDirectory) {
10021001
writer.println(" PFragment fragment;");
10031002
writer.println(" @Override");
10041003
writer.println(" protected void onCreate(Bundle savedInstanceState) {");
1005-
writer.println(" super.onCreate(savedInstanceState);");
1006-
writer.println(" requestWindowFeature(Window.FEATURE_NO_TITLE);");
1004+
writer.println(" super.onCreate(savedInstanceState);");
10071005
writer.println(" FrameLayout frame = new FrameLayout(this);");
10081006
writer.println(" frame.setId(viewId);");
10091007
writer.println(" setContentView(frame, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, "

0 commit comments

Comments
 (0)