mWmParams.x = 0;
mWmParams.y = 0;
int screenWidth = mWindowManager.getDefaultDisplay().getWidth();
int screenHeight = mWindowManager.getDefaultDisplay().getHeight();
int width;
<BUG>int height;
if ((mIsLandspace && screenWidth < screenHeight) ||

(!mIsLandspace) && screenWidth > screenHeight) {
</BUG>
screenWidth = mWindowManager.getDefaultDisplay().getHeight();

mWmParams.x = 0;
mWmParams.y = 0;
int screenWidth = mWindowManager.getDefaultDisplay().getWidth();
int screenHeight = mWindowManager.getDefaultDisplay().getHeight();
int width;
int height;
boolean isLandscape = (getDisplayRotation() % 180) != 0;
if ((isLandscape && screenWidth < screenHeight) ||
(!isLandscape) && screenWidth > screenHeight) {
screenWidth = mWindowManager.getDefaultDisplay().getHeight();
