Skip to content

Commit

Permalink
some more work
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyVanNeck committed Aug 4, 2020
1 parent 1aa5a96 commit 45dc25e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
android:icon="@drawable/ic_launcher"
android:roundIcon="@drawable/ic_launcher"
android:resizeableActivity="true">
<meta-data
android:name="android.max_aspect"
android:value="ratio_float"/>

<activity
android:screenOrientation="sensorLandscape"
Expand Down Expand Up @@ -60,6 +63,7 @@
android:screenOrientation="sensorLandscape"
android:name=".prefs.PojavPreferenceActivity"
android:configChanges="keyboardHidden|orientation|screenSize"/>

</application>

</manifest>
13 changes: 9 additions & 4 deletions app/src/main/java/net/kdt/pojavlaunch/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public void handleMessage(Message msg) {
private boolean lastGrab = false;
private boolean isExited = false;
private boolean isLogAllow = false;
private int navBarHeight;
private Object screenWidth;

// private static Collection<? extends Provider.Service> rsaPkcs1List;

Expand All @@ -140,10 +142,11 @@ public void onCreate(Bundle savedInstanceState)
public void onSystemUiVisibilityChange(int visibility) {
if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {
decorView.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
}
}
});
Expand Down Expand Up @@ -659,6 +662,8 @@ public void onSurfaceCreated(GL10 gl, javax.microedition.khronos.egl.EGLConfig p
egl10.eglMakeCurrent(AndroidContextImplementation.display, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
System.out.println(new StringBuffer().append("Gave up context: ").append(AndroidContextImplementation.context).toString());

AndroidDisplay.windowWidth =+ navBarHeight;

new Thread(new Runnable(){

@Override
Expand Down

0 comments on commit 45dc25e

Please sign in to comment.