[fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/689: Adds fade animation to Android <9.0"

This reverts commit dd2d1533203f388cfb4d8b2602fd0bb96d1b23ab.
pull/600/head
Emily Kager 5 years ago
parent 808ecb69f7
commit cc3ae6fe34

@ -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