am 6033ceb4: Ensure we don\'t call getLayoutDirection() for devices not running JB MR1+. (Bug 12906355)
* commit '6033ceb438d2d8e6c8406e2b61ae515e6156965c': Ensure we don't call getLayoutDirection() for devices not running JB MR1+. (Bug 12906355)
This commit is contained in:
@@ -371,7 +371,11 @@ public class DeviceProfile {
|
|||||||
isLandscape = (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE);
|
isLandscape = (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE);
|
||||||
isTablet = resources.getBoolean(R.bool.is_tablet);
|
isTablet = resources.getBoolean(R.bool.is_tablet);
|
||||||
isLargeTablet = resources.getBoolean(R.bool.is_large_tablet);
|
isLargeTablet = resources.getBoolean(R.bool.is_large_tablet);
|
||||||
isLayoutRtl = (configuration.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL);
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) {
|
||||||
|
isLayoutRtl = (configuration.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL);
|
||||||
|
} else {
|
||||||
|
isLayoutRtl = false;
|
||||||
|
}
|
||||||
widthPx = wPx;
|
widthPx = wPx;
|
||||||
heightPx = hPx;
|
heightPx = hPx;
|
||||||
availableWidthPx = awPx;
|
availableWidthPx = awPx;
|
||||||
|
|||||||
Reference in New Issue
Block a user