@@ -280,12 +280,14 @@ abstract class BaseEditorActivity :
280
280
281
281
override fun onApplyWindowInsets (insets : WindowInsetsCompat ) {
282
282
super .onApplyWindowInsets(insets)
283
- val height = _binding ?.swipeReveal?.height ? : return
283
+
284
284
val imeInsets = insets.getInsets(WindowInsetsCompat .Type .ime())
285
285
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
+ }
289
291
}
290
292
291
293
val isImeVisible = imeInsets.bottom > 0
@@ -302,6 +304,10 @@ abstract class BaseEditorActivity :
302
304
.getFragment<EditorSidebarFragment >()
303
305
.onApplyWindowInsets(insets)
304
306
307
+ contentCard.updateLayoutParams<ViewGroup .LayoutParams > {
308
+ this .height = swipeReveal.height
309
+ }
310
+
305
311
content.apply {
306
312
editorAppBarLayout.updatePadding(top = insets.top)
307
313
editorToolbar.updatePaddingRelative(
@@ -869,7 +875,7 @@ abstract class BaseEditorActivity :
869
875
IntentUtils .launchApp(this , packageName)
870
876
it.dismiss()
871
877
}
872
- .negativeActionText(string.cancel )
878
+ .negativeActionText(string.no )
873
879
.negativeActionTapListener(Flashbar ::dismiss)
874
880
.build()
875
881
this .tempFlashbar?.showOnUiThread()
0 commit comments