mirror of
https://github.com/jamessanford/kegs.git
synced 2024-07-06 12:28:58 +00:00
Still working on obtaining the actual window size.
This commit is contained in:
parent
f557787e81
commit
b3a3ffe648
@ -249,6 +249,12 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset {
|
|||||||
//
|
//
|
||||||
// We want to use getWindowVisibleDisplayFrame, but it's not
|
// We want to use getWindowVisibleDisplayFrame, but it's not
|
||||||
// always immediately available. Bug workaround.
|
// 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() {
|
mKegsView.postDelayed(new Runnable() {
|
||||||
public void run() { setScreenSize(false); }
|
public void run() { setScreenSize(false); }
|
||||||
}, 250);
|
}, 250);
|
||||||
|
Loading…
Reference in New Issue
Block a user