Skip to content

Commit

Permalink
Fixed buring
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed Jun 27, 2018
1 parent 984471a commit 6a1f3b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,12 @@ class LinkHeaderViewHolder(override val containerView : View,

link_bury.setOnClickListener {
dialog.dismiss()
//openBuryReasonMenu()
openBuryReasonMenu(link)
}

link_related.setOnClickListener {
if (link.relatedCount > 0) {
navigatorApi.openLinkRelatedActivity(link.id)

}
dialog.dismiss()
}
Expand Down Expand Up @@ -222,6 +221,12 @@ class LinkHeaderViewHolder(override val containerView : View,
dialog.dismiss()
}
}

val mBehavior = com.google.android.material.bottomsheet.BottomSheetBehavior.from(bottomSheetView.parent as View)
dialog.setOnShowListener {
mBehavior.peekHeight = bottomSheetView.height
}
dialog.show()
}


Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ allprojects {
project.ext {
versionMajor = 0
versionMinor = 9
versionPatch = 1
versionPatch = 2
versionBuild = 0
}
}
Expand Down

0 comments on commit 6a1f3b5

Please sign in to comment.