Various lint error fixes.
> Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
This commit is contained in:
1 parent
5a92b2356f
commit
7066003b20
43 files changed
+181
-132
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user