Skip to content

Commit c4ed991

Browse files
committed
fix: requestFeature causing problem
1 parent b5527c5 commit c4ed991

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
242242
}
243243

244244
override fun onCreate(savedInstanceState: Bundle?) {
245-
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
246-
247245
// Set up shared element transition and disable overlay so views don't show above system bars
248246
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
249247
setExitSharedElementCallback(
@@ -268,6 +266,8 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
268266
)
269267
window.sharedElementsUseOverlay = false
270268

269+
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
270+
271271
super.onCreate(savedInstanceState)
272272

273273
backPressedCallback = object : OnBackPressedCallback(enabled = true) {

app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,6 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
275275
* Called when the activity is created. Initializes the view model and configuration.
276276
*/
277277
override fun onCreate(savedInstanceState: Bundle?) {
278-
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
279-
280278
// Setup shared element transitions
281279
if (intent.extras?.getString(TRANSITION_NAME) != null) {
282280
window.requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)
@@ -293,6 +291,8 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
293291
}
294292
}
295293

294+
val splashScreen = maybeInstallSplashScreen(savedInstanceState)
295+
296296
super.onCreate(savedInstanceState)
297297
binding = ReaderActivityBinding.inflate(layoutInflater)
298298
setContentView(binding.root)

0 commit comments

Comments
 (0)