Skip to content

Commit 5b67a7a

Browse files
Update app/src/main/kotlin/org/fossify/notes/fragments/TextFragment.kt
Co-authored-by: Naveen Singh <36371707+naveensingh@users.noreply.github.com>
1 parent 78bf8e2 commit 5b67a7a

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

app/src/main/kotlin/org/fossify/notes/fragments/TextFragment.kt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -210,20 +210,6 @@ class TextFragment : NoteFragment() {
210210
scrollToEndOfNote()
211211
view.onApplyWindowInsets(insets)
212212
}
213-
214-
val callback =
215-
object : WindowInsetsAnimationCompat.Callback(DISPATCH_MODE_CONTINUE_ON_SUBTREE) {
216-
override fun onPrepare(animation: WindowInsetsAnimationCompat) {
217-
super.onPrepare(animation)
218-
scrollToEndOfNote()
219-
}
220-
221-
override fun onProgress(
222-
insets: WindowInsetsCompat,
223-
runningAnimations: MutableList<WindowInsetsAnimationCompat>,
224-
) = insets
225-
}
226-
ViewCompat.setWindowInsetsAnimationCallback(requireActivity().window.decorView, callback)
227213
}
228214

229215
private fun scrollToEndOfNote() {

0 commit comments

Comments
 (0)