Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit dea24ed

Browse files
Fixed the indentation in AnimatedFragment.kt file.
Cleaned up minor indentation and comments.
1 parent 03d9f5e commit dea24ed

File tree

1 file changed

+3
-3
lines changed
  • DrawableAnimations/app/src/main/java/com/example/android/drawableanimations/demo/animated

1 file changed

+3
-3
lines changed

DrawableAnimations/app/src/main/java/com/example/android/drawableanimations/demo/animated/AnimatedFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ class AnimatedFragment : Fragment(R.layout.animated_fragment) {
3434
override fun onAttach(context: Context) {
3535
super.onAttach(context)
3636
val callback: OnBackPressedCallback = object : OnBackPressedCallback(
37-
true // default to enabled
37+
true
3838
) {
3939
override fun handleOnBackPressed() {
4040
binding.stop.performClick()
41-
activity?.supportFragmentManager?.popBackStack()
41+
activity?.supportFragmentManager?.popBackStack()
4242
}
4343
}
4444
requireActivity().onBackPressedDispatcher.addCallback(
45-
this, // LifecycleOwner
45+
this,
4646
callback
4747
)
4848
}

0 commit comments

Comments
 (0)