diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-05-14 21:42:07 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-14 21:42:07 +0000 |
commit | fb445cd97d828fa2d9fe3190b25524e39038cd0b (patch) | |
tree | b58f33560f46eb71565ed32ca29293e8a5d07086 /src/com/android/launcher3/DeviceProfile.java | |
parent | c2af7f9175d6ae1cb1ec599a6b9361f4434fa531 (diff) | |
parent | 7066003b2032a49ae5e59dab9b706259bdeb7e6e (diff) | |
download | android_packages_apps_Trebuchet-fb445cd97d828fa2d9fe3190b25524e39038cd0b.tar.gz android_packages_apps_Trebuchet-fb445cd97d828fa2d9fe3190b25524e39038cd0b.tar.bz2 android_packages_apps_Trebuchet-fb445cd97d828fa2d9fe3190b25524e39038cd0b.zip |
Merge "Various lint error fixes." into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index fe6051dbb..ad0afd97b 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -459,11 +459,7 @@ public class DeviceProfile { isLandscape = (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE); isTablet = resources.getBoolean(R.bool.is_tablet); isLargeTablet = resources.getBoolean(R.bool.is_large_tablet); - 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; - } + isLayoutRtl = Utilities.isRtl(resources); widthPx = wPx; heightPx = hPx; availableWidthPx = awPx; |