File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
src/main/java/com/ruffian/library/widget/helper Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ android {
88 defaultConfig {
99 minSdkVersion 14
1010 targetSdkVersion 28
11- versionCode 33
12- versionName " support.v0.0.9 "
11+ versionCode 34
12+ versionName " support.v0.0.10 "
1313 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
1414 }
1515 buildTypes {
Original file line number Diff line number Diff line change @@ -1383,14 +1383,15 @@ private void setRadius() {
13831383 mBorderRadii [6 ] = mCornerRadius ;
13841384 mBorderRadii [7 ] = mCornerRadius ;
13851385 } else {
1386- mBorderRadii [0 ] = mCornerRadiusTopLeft ;
1387- mBorderRadii [1 ] = mCornerRadiusTopLeft ;
1388- mBorderRadii [2 ] = mCornerRadiusTopRight ;
1389- mBorderRadii [3 ] = mCornerRadiusTopRight ;
1390- mBorderRadii [4 ] = mCornerRadiusBottomRight ;
1391- mBorderRadii [5 ] = mCornerRadiusBottomRight ;
1392- mBorderRadii [6 ] = mCornerRadiusBottomLeft ;
1393- mBorderRadii [7 ] = mCornerRadiusBottomLeft ;
1386+ boolean isRtl = isRtl ();
1387+ mBorderRadii [0 ] = isRtl ? mCornerRadiusTopRight : mCornerRadiusTopLeft ;
1388+ mBorderRadii [1 ] = isRtl ? mCornerRadiusTopRight : mCornerRadiusTopLeft ;
1389+ mBorderRadii [2 ] = isRtl ? mCornerRadiusTopLeft : mCornerRadiusTopRight ;
1390+ mBorderRadii [3 ] = isRtl ? mCornerRadiusTopLeft : mCornerRadiusTopRight ;
1391+ mBorderRadii [4 ] = isRtl ? mCornerRadiusBottomLeft : mCornerRadiusBottomRight ;
1392+ mBorderRadii [5 ] = isRtl ? mCornerRadiusBottomLeft : mCornerRadiusBottomRight ;
1393+ mBorderRadii [6 ] = isRtl ? mCornerRadiusBottomRight : mCornerRadiusBottomLeft ;
1394+ mBorderRadii [7 ] = isRtl ? mCornerRadiusBottomRight : mCornerRadiusBottomLeft ;
13941395 }
13951396 mBackgroundNormal .setCornerRadii (mBorderRadii );
13961397 mBackgroundPressed .setCornerRadii (mBorderRadii );
You can’t perform that action at this time.
0 commit comments