Hopefully fixed app restarting when system bar is hidden and shown

This commit is contained in:
pelya
2015-01-03 15:39:52 +02:00
parent fdcee4b65c
commit 65c90eda88
2 changed files with 5 additions and 3 deletions

View File

@@ -631,7 +631,9 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
ww = topView.getWidth() - topView.getWidth() % 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");
Intent intent = new Intent(context, RestartMainActivity.class);

View File

@@ -7,10 +7,10 @@ AppName="XServer XSDL"
AppFullName=x.org.server
# Application version code (integer)
AppVersionCode=11120
AppVersionCode=11121
# 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^...'
# If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu