Browse Source

Hide MediaBox after clicking the ADD button

cooperku_kdanmobile 5 years ago
parent
commit
8c90e8506b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      reader/src/main/java/com/kdanmobile/reader/ReaderActivity.kt

+ 4 - 4
reader/src/main/java/com/kdanmobile/reader/ReaderActivity.kt

@@ -472,22 +472,22 @@ abstract class ReaderActivity : AppCompatActivity() {
             onDismissListener = Runnable { onMediaBoxDismissed() }
             onViewerEditTabAddButtonClickListener = object : ViewerEditView.OnViewerEditTabAddButtonClickListener {
                 override fun onTabTextBoxAddButtonClick(textBoxTabView: TextBoxTabView) {
-                    hideAllToolbars()
+                    dismiss()
                     viewModel.setTextBoxAttribute(textBoxTabView.getTextBoxAttribute())
                 }
 
                 override fun onTabSignatureAddButtonClick(signatureTabView: SignatureTabView) {
-                    hideAllToolbars()
+                    dismiss()
                     viewModel.setSignatureAttribute(signatureTabView.getSignatureAttribute())
                 }
 
                 override fun onTabStampAddButtonClick(stampTabView: StampTabView) {
-                    hideAllToolbars()
+                    dismiss()
                     viewModel.setStampAttribute(stampTabView.getStampAttribute())
                 }
 
                 override fun onTabShapeAddButtonClick(shapeTabView: ShapeTabView) {
-                    hideAllToolbars()
+                    dismiss()
                     viewModel.setShapeAttribute(shapeTabView.getShapeAttribute())
                 }
             }