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