@@ -20,16 +20,13 @@ package now.fortuitous.thanos.onboarding
20
20
import android.content.Context
21
21
import android.os.Bundle
22
22
import androidx.activity.compose.setContent
23
- import androidx.compose.material3.MaterialTheme
24
- import androidx.compose.runtime.SideEffect
25
23
import androidx.compose.ui.platform.LocalContext
26
- import com.google.accompanist.systemuicontroller.rememberSystemUiController
27
- import com.google.android.material.composethemeadapter3.Mdc3Theme
28
- import github.tornaco.android.thanos.theme.ThemeActivity
29
24
import github.tornaco.android.thanos.util.ActivityUtils
30
25
import now.fortuitous.thanos.main.NavActivity
26
+ import tornaco.apps.thanox.base.BaseActivity
27
+ import tornaco.apps.thanox.base.ui.theme.ThanosTheme
31
28
32
- class OnBoardingActivity : ThemeActivity () {
29
+ class OnBoardingActivity : BaseActivity () {
33
30
34
31
object Starter {
35
32
fun start (context : Context ? ) {
@@ -40,23 +37,11 @@ class OnBoardingActivity : ThemeActivity() {
40
37
override fun onCreate (savedInstanceState : Bundle ? ) {
41
38
super .onCreate(savedInstanceState)
42
39
setContent {
43
- Mdc3Theme {
44
- val systemUiController = rememberSystemUiController()
45
- val useDarkIcons = androidx.compose.material.MaterialTheme .colors.isLight
46
- val colorSurface = MaterialTheme .colorScheme.surface
47
-
48
- SideEffect {
49
- systemUiController.setSystemBarsColor(
50
- color = colorSurface,
51
- darkIcons = useDarkIcons
52
- )
53
- }
54
-
40
+ ThanosTheme {
55
41
val context = LocalContext .current
56
-
57
42
OnBoardingScreen {
58
43
now.fortuitous.thanos.pref.AppPreference .setHasOnBoarding(context, true )
59
- NavActivity .Starter .start(thisActivity() )
44
+ NavActivity .Starter .start(context )
60
45
finish()
61
46
}
62
47
}
0 commit comments