Ver Fonte

Hide MediaBox after clicking the ADD button

cooperku_kdanmobile há 5 anos atrás
pai
commit
8c90e8506b

+ 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())
                 }
             }