Skip to content

Commit

Permalink
fix rtl
Browse files Browse the repository at this point in the history
  • Loading branch information
shiburagi committed Aug 19, 2020
1 parent 9c62b7a commit 0e6ede4
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 0e6ede4

Please sign in to comment.