Revert "For #689: Adds fade animation to Android <9.0"

This reverts commit 36e9939d9e.
nightly-build-test
Emily Kager 5 years ago
parent 5d04669854
commit c939aee4cf

@ -7,7 +7,6 @@ package org.mozilla.fenix
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.preference.PreferenceManager
import android.util.AttributeSet
@ -46,14 +45,7 @@ open class HomeActivity : AppCompatActivity() {
val themeManager = DefaultThemeManager().also {
it.onThemeChange = { theme ->
setTheme(theme)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
// Older versions of android do not support window animation style, so we use a transition instead
finish()
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out)
startActivity(intent)
} else {
recreate()
}
recreate()
}
}

Loading…
Cancel
Save