From b3a3ffe648139cc5e837230214acfb5f8937f2e9 Mon Sep 17 00:00:00 2001 From: James Sanford Date: Wed, 3 Oct 2012 22:05:29 -0700 Subject: [PATCH] Still working on obtaining the actual window size. --- src/com/froop/app/kegs/KegsMain.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/froop/app/kegs/KegsMain.java b/src/com/froop/app/kegs/KegsMain.java index ada15e8..a3d6544 100644 --- a/src/com/froop/app/kegs/KegsMain.java +++ b/src/com/froop/app/kegs/KegsMain.java @@ -249,6 +249,12 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset { // // We want to use getWindowVisibleDisplayFrame, but it's not // always immediately available. Bug workaround. + // + // BUG: Sometimes if the device rotates as the soft keyboard + // is becoming visible for the first time, the reported + // window size is reduced and we don't scale to full screen. + // The user can fix this by rotating the screen again. + // We may want to trap IME visible/hidden events and update the size. mKegsView.postDelayed(new Runnable() { public void run() { setScreenSize(false); } }, 250);