28 lines
890 B
Kotlin
28 lines
890 B
Kotlin
|
package me.ash.reader
|
||
|
|
||
|
import android.os.Bundle
|
||
|
import androidx.activity.ComponentActivity
|
||
|
import androidx.activity.compose.setContent
|
||
|
import androidx.compose.animation.ExperimentalAnimationApi
|
||
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||
|
import androidx.core.view.WindowCompat
|
||
|
import com.google.accompanist.pager.ExperimentalPagerApi
|
||
|
import dagger.hilt.android.AndroidEntryPoint
|
||
|
import me.ash.reader.ui.page.common.HomeEntry
|
||
|
|
||
|
@ExperimentalAnimationApi
|
||
|
@ExperimentalMaterial3Api
|
||
|
@ExperimentalPagerApi
|
||
|
@ExperimentalFoundationApi
|
||
|
@AndroidEntryPoint
|
||
|
class MainActivity : ComponentActivity() {
|
||
|
|
||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||
|
super.onCreate(savedInstanceState)
|
||
|
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||
|
setContent {
|
||
|
HomeEntry()
|
||
|
}
|
||
|
}
|
||
|
}
|