@@ -280,12 +280,14 @@ abstract class BaseEditorActivity :
280280
281281 override fun onApplyWindowInsets (insets : WindowInsetsCompat ) {
282282 super .onApplyWindowInsets(insets)
283- val height = _binding ?.swipeReveal?.height ? : return
283+
284284 val imeInsets = insets.getInsets(WindowInsetsCompat .Type .ime())
285285
286- _binding ?.content?.bottomSheet?.setImeVisible(imeInsets.bottom > 0 )
287- _binding ?.contentCard?.updateLayoutParams<ViewGroup .LayoutParams > {
288- this .height = height - imeInsets.bottom
286+ this ._binding ?.apply {
287+ content.bottomSheet.setImeVisible(imeInsets.bottom > 0 )
288+ contentCard.updateLayoutParams<ViewGroup .LayoutParams > {
289+ this .height = swipeReveal.height - imeInsets.bottom
290+ }
289291 }
290292
291293 val isImeVisible = imeInsets.bottom > 0
@@ -302,6 +304,10 @@ abstract class BaseEditorActivity :
302304 .getFragment<EditorSidebarFragment >()
303305 .onApplyWindowInsets(insets)
304306
307+ contentCard.updateLayoutParams<ViewGroup .LayoutParams > {
308+ this .height = swipeReveal.height
309+ }
310+
305311 content.apply {
306312 editorAppBarLayout.updatePadding(top = insets.top)
307313 editorToolbar.updatePaddingRelative(
@@ -869,7 +875,7 @@ abstract class BaseEditorActivity :
869875 IntentUtils .launchApp(this , packageName)
870876 it.dismiss()
871877 }
872- .negativeActionText(string.cancel )
878+ .negativeActionText(string.no )
873879 .negativeActionTapListener(Flashbar ::dismiss)
874880 .build()
875881 this .tempFlashbar?.showOnUiThread()
0 commit comments