Bug 717085 - Ensure that when Gecko does a session-restore, it knows how big the screen is. r=pcwalton

This commit is contained in:
Kartikaya Gupta
2012-01-20 09:36:08 -05:00
parent 113132ce8c
commit f649d5ee11
3 changed files with 25 additions and 1 deletions

View File

@@ -469,6 +469,10 @@ public class GeckoAppShell
if (restoreSession)
combinedArgs += " -restoresession";
DisplayMetrics metrics = new DisplayMetrics();
GeckoApp.mAppContext.getWindowManager().getDefaultDisplay().getMetrics(metrics);
combinedArgs += " -width " + metrics.widthPixels + " -height " + metrics.heightPixels;
GeckoApp.mAppContext.runOnUiThread(new Runnable() {
public void run() {
geckoLoaded();