Bladeren bron

Fixed dismissing media box by click media box white part

Wayne 5 jaren geleden
bovenliggende
commit
60e35c914b
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      reader/src/main/java/com/kdanmobile/reader/screen/view/ViewerEditView.kt

+ 3 - 0
reader/src/main/java/com/kdanmobile/reader/screen/view/ViewerEditView.kt

@@ -50,6 +50,9 @@ class ViewerEditView @JvmOverloads constructor(
         visibility = View.INVISIBLE
         setupTabView()
 
+        /** Set empty listener to prevent dismissing by clicking box **/
+        view_viewEdit_content.setOnClickListener {}
+
         /** Move media box view to bottom of parent(hide it) **/
         val size = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED)
         val v = view_viewEdit_content