Skip to content

Commit

Permalink
Merge pull request #28 from shiburagi/fix_rtl
Browse files Browse the repository at this point in the history
fix rtl
  • Loading branch information
shiburagi authored Aug 19, 2020
2 parents 2939282 + 0e6ede4 commit ba851c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drawerbehavior/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
publish {
def groupProjectID = 'com.infideap.drawerbehavior'
def artifactProjectID = 'drawer-behavior'
def publishVersionID = '1.0.3'
def publishVersionID = '1.0.4'

userOrg = 'infideap2'
repoName = "Drawer-Behavior"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ open class AdvanceDrawerLayout : DrawerLayout {
val window = activity!!.window
var isRtl = false
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
isRtl = layoutDirection == View.LAYOUT_DIRECTION_RTL || window.decorView.layoutDirection == View.LAYOUT_DIRECTION_RTL || resources.configuration.layoutDirection == View.LAYOUT_DIRECTION_RTL
isRtl = layoutDirection == View.LAYOUT_DIRECTION_RTL
// || window.decorView.layoutDirection == View.LAYOUT_DIRECTION_RTL || resources.configuration.layoutDirection == View.LAYOUT_DIRECTION_RTL
}
for (i in 0 until frameLayout!!.childCount) {
val child = frameLayout!!.getChildAt(i) as CardView
Expand Down

0 comments on commit ba851c2

Please sign in to comment.