22 lines
630 B
Kotlin
22 lines
630 B
Kotlin
package me.ash.reader
|
|
|
|
import android.os.Bundle
|
|
import androidx.activity.ComponentActivity
|
|
import androidx.activity.compose.setContent
|
|
import androidx.core.view.WindowCompat
|
|
import dagger.hilt.android.AndroidEntryPoint
|
|
import me.ash.reader.ui.page.common.HomeEntry
|
|
|
|
@AndroidEntryPoint
|
|
class MainActivity : ComponentActivity() {
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
|
setContent {
|
|
HomeEntry(intent.extras).also {
|
|
intent.replaceExtras(null)
|
|
}
|
|
}
|
|
}
|
|
} |