File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/processing/mode/android Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -878,6 +878,7 @@ private void writeMainActivity(final File srcDirectory) {
878
878
writer .println ("import processing.core.PApplet;" );
879
879
writer .println ("public class MainActivity extends FragmentActivity {" );
880
880
writer .println (" PApplet fragment;" );
881
+ writer .println (" int viewPagerId = 0x1000;" );
881
882
writer .println (" @Override" );
882
883
writer .println (" protected void onCreate(Bundle savedInstanceState) {" );
883
884
writer .println (" super.onCreate(savedInstanceState);" );
@@ -888,6 +889,7 @@ private void writeMainActivity(final File srcDirectory) {
888
889
writer .println ("window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,"
889
890
+ "WindowManager.LayoutParams.FLAG_FULLSCREEN);" );
890
891
writer .println (" FrameLayout frame = new FrameLayout(this);" );
892
+ writer .println (" frame.setId(viewPagerId);" );
891
893
writer .println (" setContentView(frame, new LayoutParams(LayoutParams.MATCH_PARENT, "
892
894
+ "LayoutParams.MATCH_PARENT));" );
893
895
writer .println (" if (savedInstanceState == null) {" );
You can’t perform that action at this time.
0 commit comments