Skip to content

Commit

Permalink
#39 [feat] : 가로모드 막기 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
yskim6772 committed Jan 18, 2025
1 parent d56e86e commit a040b15
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.sopt.withsuhyeon.feature.main

import android.annotation.SuppressLint
import android.content.pm.ActivityInfo
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
Expand All @@ -9,8 +11,10 @@ import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
@SuppressLint("SourceLockedOrientationActivity")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
enableEdgeToEdge()
setContent {
val navigator: MainNavigator = rememberMainNavigator()
Expand Down

0 comments on commit a040b15

Please sign in to comment.