Merge pull request #212 from janisslsm/animation-fix

Fix settings not showing up below android 10 (Q)
This commit is contained in:
Bnyro 2022-05-15 16:28:05 +02:00 committed by GitHub
commit b8b48a5ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<View>(android.R.id.content)
view.setAlpha(0F);
view.animate().alpha(1F).setDuration(300);