From 665721fbdec8566bc844392b1656352aee89d111 Mon Sep 17 00:00:00 2001 From: janisslsm <97699850+janisslsm@users.noreply.github.com> Date: Fri, 13 May 2022 19:55:15 +0300 Subject: [PATCH] Fix animation --- app/src/main/java/com/github/libretube/SettingsActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/SettingsActivity.kt b/app/src/main/java/com/github/libretube/SettingsActivity.kt index 0fb13644e..2ee7f5645 100644 --- a/app/src/main/java/com/github/libretube/SettingsActivity.kt +++ b/app/src/main/java/com/github/libretube/SettingsActivity.kt @@ -38,7 +38,9 @@ class SettingsActivity : AppCompatActivity(), override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - overridePendingTransition(50, 50); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + overridePendingTransition(50, 50); + } val view = this.findViewById(android.R.id.content) view.setAlpha(0F); view.animate().alpha(1F).setDuration(300);