Hopefully fixed app restarting when system bar is hidden and shown
This commit is contained in:
@@ -631,7 +631,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
|
|||||||
ww = topView.getWidth() - topView.getWidth() % 2;
|
ww = topView.getWidth() - topView.getWidth() % 2;
|
||||||
hh = topView.getHeight() - topView.getHeight() % 2;
|
hh = topView.getHeight() - topView.getHeight() % 2;
|
||||||
}
|
}
|
||||||
if (mWidth != 0 && mHeight != 0 && (mWidth != ww || mHeight != hh))
|
if (mWidth != 0 && mHeight != 0 && (
|
||||||
|
Math.abs(mWidth - ww) > mWidth / 10 ||
|
||||||
|
Math.abs(mHeight - hh) > mHeight / 10))
|
||||||
{
|
{
|
||||||
Log.w("SDL", "libSDL: DemoRenderer.onWindowResize(): screen size changed from " + mWidth + "x" + mHeight + " to " + ww + "x" + hh + " - restarting application");
|
Log.w("SDL", "libSDL: DemoRenderer.onWindowResize(): screen size changed from " + mWidth + "x" + mHeight + " to " + ww + "x" + hh + " - restarting application");
|
||||||
Intent intent = new Intent(context, RestartMainActivity.class);
|
Intent intent = new Intent(context, RestartMainActivity.class);
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ AppName="XServer XSDL"
|
|||||||
AppFullName=x.org.server
|
AppFullName=x.org.server
|
||||||
|
|
||||||
# Application version code (integer)
|
# Application version code (integer)
|
||||||
AppVersionCode=11120
|
AppVersionCode=11121
|
||||||
|
|
||||||
# Application user-visible version name (string)
|
# Application user-visible version name (string)
|
||||||
AppVersionName="1.11.20"
|
AppVersionName="1.11.21"
|
||||||
|
|
||||||
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
||||||
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu
|
||||||
|
|||||||
Reference in New Issue
Block a user