fix width/height detection for portrait screens
This commit is contained in:
parent
ebb7bc07bf
commit
c784d66394
@ -469,11 +469,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
||||
int height = display.getHeight();
|
||||
|
||||
if (height > width) {
|
||||
int tmp = height;
|
||||
width = tmp;
|
||||
height = width;
|
||||
int tmp = width;
|
||||
width = height;
|
||||
height = tmp;
|
||||
}
|
||||
|
||||
|
||||
m_smallScreenMode = m_compatMode || (width < 960 || height < 720);
|
||||
|
||||
setContentView(R.layout.main);
|
||||
|
@ -125,9 +125,9 @@ public class OfflineActivity extends FragmentActivity implements
|
||||
int height = display.getHeight();
|
||||
|
||||
if (height > width) {
|
||||
int tmp = height;
|
||||
width = tmp;
|
||||
height = width;
|
||||
int tmp = width;
|
||||
width = height;
|
||||
height = tmp;
|
||||
}
|
||||
|
||||
m_smallScreenMode = m_compatMode || (width < 960 || height < 720);
|
||||
|
Loading…
Reference in New Issue
Block a user