Apply theme after view is created

This commit is contained in:
Rahul Patel
2024-07-22 23:14:03 +05:30
parent 2b65eeb742
commit 4fbda168d7

View File

@@ -69,9 +69,10 @@ class MainActivity : AppCompatActivity() {
// This is needed thanks to OEMs breaking the MY_PACKAGE_REPLACED API
MigrationReceiver.runMigrationsIfRequired(this)
applyThemeAccent()
super.onCreate(savedInstanceState)
applyThemeAccent()
B = ActivityMainBinding.inflate(layoutInflater)
setContentView(B.root)