mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: requestFeature causing problem
This commit is contained in:
parent
b5527c579d
commit
c4ed991c79
2 changed files with 4 additions and 4 deletions
|
@ -242,8 +242,6 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
|
|
||||||
|
|
||||||
// Set up shared element transition and disable overlay so views don't show above system bars
|
// Set up shared element transition and disable overlay so views don't show above system bars
|
||||||
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
||||||
setExitSharedElementCallback(
|
setExitSharedElementCallback(
|
||||||
|
@ -268,6 +266,8 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||||
)
|
)
|
||||||
window.sharedElementsUseOverlay = false
|
window.sharedElementsUseOverlay = false
|
||||||
|
|
||||||
|
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
|
||||||
|
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
|
|
||||||
backPressedCallback = object : OnBackPressedCallback(enabled = true) {
|
backPressedCallback = object : OnBackPressedCallback(enabled = true) {
|
||||||
|
|
|
@ -275,8 +275,6 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
|
||||||
* Called when the activity is created. Initializes the view model and configuration.
|
* Called when the activity is created. Initializes the view model and configuration.
|
||||||
*/
|
*/
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
|
|
||||||
|
|
||||||
// Setup shared element transitions
|
// Setup shared element transitions
|
||||||
if (intent.extras?.getString(TRANSITION_NAME) != null) {
|
if (intent.extras?.getString(TRANSITION_NAME) != null) {
|
||||||
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
|
||||||
|
@ -293,6 +291,8 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
|
||||||
|
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
binding = ReaderActivityBinding.inflate(layoutInflater)
|
binding = ReaderActivityBinding.inflate(layoutInflater)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue