Bug 845499 - Fix broken sIsSmallTablet result cache. r=sriram

This commit is contained in:
Kartikaya Gupta 2013-03-12 10:06:51 +00:00
parent 91b6b9c3ff
commit b005506f33

View File

@ -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;