Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-01 19:13:39 +04:00
parent 1c6a173362
commit a5c2f2d6ac
3 changed files with 29 additions and 12 deletions

View file

@ -1,5 +1,6 @@
package com.tangem.core.ui.screen
import android.content.res.Configuration
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
@ -22,6 +23,18 @@ abstract class ComposeFragment : Fragment(), ComposeScreen {
}
}
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
/*
* We need to manually dispatch configuration changes to the Compose view.
*
* `android:configChanges="uiMode"` is set in the manifest.
* */
view?.dispatchConfigurationChanged(newConfig)
}
/**
* Inflates transitions for the fragment. Override this method to customize
* enter and exit transitions for the fragment.