Tentative fix for the slow orientation change when invoking from background

This commit is contained in:
pelya
2012-11-01 16:27:29 +02:00
parent c46aad8b5c
commit 77ee7a1f8a

View File

@@ -302,7 +302,24 @@ public class MainActivity extends Activity
{
downloader.setStatusField(_tv);
if( downloader.DownloadComplete )
initSDL();
{
(new Thread(new Runnable()
{
public void run()
{
try {
Thread.sleep(300); // Allow some time for Os to change screen orientation
} catch(Exception e) {}
runOnUiThread(new Runnable()
{
public void run()
{
initSDL();
}
});
}
})).start();
}
}
}
//if( _ad.getView() != null )