diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/FilteredDeckOptions.kt b/AnkiDroid/src/main/java/com/ichi2/anki/FilteredDeckOptions.kt index dcdb678b13ea..01fde1c7705e 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/FilteredDeckOptions.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/FilteredDeckOptions.kt @@ -20,8 +20,6 @@ package com.ichi2.anki import android.content.SharedPreferences import android.os.Bundle import android.preference.* -import com.ichi2.anim.ActivityTransitionAnimation -import com.ichi2.anim.ActivityTransitionAnimation.slide import com.ichi2.anki.analytics.UsageAnalytics import com.ichi2.annotations.NeedsTest import com.ichi2.libanki.Collection @@ -264,7 +262,6 @@ class FilteredDeckOptions : } } finish() - slide(this, ActivityTransitionAnimation.Direction.FADE) } @Suppress("deprecation") // conversion to fragments tracked in github as #5019 diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/StudyOptionsFragment.kt b/AnkiDroid/src/main/java/com/ichi2/anki/StudyOptionsFragment.kt index e3106096c164..3bab8a95be2e 100644 --- a/AnkiDroid/src/main/java/com/ichi2/anki/StudyOptionsFragment.kt +++ b/AnkiDroid/src/main/java/com/ichi2/anki/StudyOptionsFragment.kt @@ -33,8 +33,6 @@ import androidx.appcompat.widget.Toolbar import androidx.core.text.HtmlCompat import androidx.core.view.MenuItemCompat import androidx.fragment.app.Fragment -import com.ichi2.anim.ActivityTransitionAnimation -import com.ichi2.anim.ActivityTransitionAnimation.slide import com.ichi2.anki.CollectionManager.withCol import com.ichi2.anki.dialogs.customstudy.CustomStudyDialog import com.ichi2.anki.snackbar.showSnackbar @@ -125,7 +123,6 @@ class StudyOptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener { i.putExtra("defaultConfig", defaultConfig) Timber.i("openFilteredDeckOptions()") onDeckOptionsActivityResult.launch(i) - slide(requireActivity(), ActivityTransitionAnimation.Direction.FADE) } override fun onCreate(savedInstanceState: Bundle?) { @@ -168,7 +165,6 @@ class StudyOptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener { if (!mFragmented && a != null) { a.setResult(result) a.finish() - slide(a, ActivityTransitionAnimation.Direction.END) } else if (a == null) { // getActivity() can return null if reference to fragment lingers after parent activity has been closed, // which is particularly relevant when using AsyncTasks. @@ -190,11 +186,6 @@ class StudyOptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener { startActivity(reviewer) requireActivity().finish() } - animateLeft() - } - - private fun animateLeft() { - slide(requireActivity(), ActivityTransitionAnimation.Direction.START) } private fun initAllContentViews(studyOptionsView: View) { @@ -245,7 +236,6 @@ class StudyOptionsFragment : Fragment(), Toolbar.OnMenuItemClickListener { val i = com.ichi2.anki.pages.DeckOptions.getIntent(requireContext(), col!!.decks.current().id) Timber.i("Opening deck options for activity result") onDeckOptionsActivityResult.launch(i) - slide(requireActivity(), ActivityTransitionAnimation.Direction.FADE) } return true }