Bug 717085 - Ensure that when Gecko does a session-restore, it knows how big the screen is. r=pcwalton
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user