From a040b15456b1256fc7367efff3001ea030854f74 Mon Sep 17 00:00:00 2001 From: yskim6772 Date: Sat, 18 Jan 2025 22:59:51 +0900 Subject: [PATCH] =?UTF-8?q?#39=20[feat]=20:=20=EA=B0=80=EB=A1=9C=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=20=EB=A7=89=EA=B8=B0=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sopt/withsuhyeon/feature/main/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/sopt/withsuhyeon/feature/main/MainActivity.kt b/app/src/main/java/com/sopt/withsuhyeon/feature/main/MainActivity.kt index ee26d12..8b97a11 100644 --- a/app/src/main/java/com/sopt/withsuhyeon/feature/main/MainActivity.kt +++ b/app/src/main/java/com/sopt/withsuhyeon/feature/main/MainActivity.kt @@ -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 @@ -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()