mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
Bug 845499 - Fix broken sIsSmallTablet result cache. r=sriram
This commit is contained in:
parent
91b6b9c3ff
commit
b005506f33
@ -1324,8 +1324,8 @@ abstract public class GeckoApp
|
||||
public boolean isSmallTablet() {
|
||||
if (sIsSmallTablet == null) {
|
||||
int screenLayout = getResources().getConfiguration().screenLayout;
|
||||
return (Build.VERSION.SDK_INT >= 11 &&
|
||||
((screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE));
|
||||
sIsSmallTablet = (Build.VERSION.SDK_INT >= 11 &&
|
||||
((screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE));
|
||||
}
|
||||
|
||||
return sIsSmallTablet;
|
||||
|
Loading…
Reference in New Issue
Block a user