Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: end SymbolInputView animations before starting bottom sheet tran…
Browse files Browse the repository at this point in the history
…sition (#1414, #1417)
  • Loading branch information
itsaky committed Nov 1, 2023
1 parent e3c0ca9 commit 6cb604e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions app/src/main/java/com/itsaky/androidide/ui/EditorBottomSheet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,17 @@ constructor(
return
}

binding.symbolInput.itemAnimator?.endAnimations()

TransitionManager.beginDelayedTransition(
binding.root,
MaterialSharedAxis(MaterialSharedAxis.Y, false)
)

val activity = context as Activity
if (KeyboardUtils.isSoftInputVisible(activity)) {
TransitionManager.beginDelayedTransition(
binding.root,
MaterialSharedAxis(MaterialSharedAxis.Y, false)
)
binding.headerContainer.displayedChild = CHILD_SYMBOL_INPUT
} else {
TransitionManager.beginDelayedTransition(
binding.root,
MaterialSharedAxis(MaterialSharedAxis.Y, false)
)
binding.headerContainer.displayedChild = CHILD_HEADER
}
}
Expand Down

0 comments on commit 6cb604e

Please sign in to comment.