From 046dc224bc505b05d466e78da1fdabaf03b2bbac Mon Sep 17 00:00:00 2001 From: Cromega08 Date: Fri, 20 Dec 2024 16:55:35 -0500 Subject: [PATCH] fix: lock screen orientation to portrait --- .../studio/measurepedia/ui/activities/generic/Activity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/cromega/studio/measurepedia/ui/activities/generic/Activity.kt b/app/src/main/java/cromega/studio/measurepedia/ui/activities/generic/Activity.kt index 61c3561..d39b419 100644 --- a/app/src/main/java/cromega/studio/measurepedia/ui/activities/generic/Activity.kt +++ b/app/src/main/java/cromega/studio/measurepedia/ui/activities/generic/Activity.kt @@ -1,6 +1,7 @@ package cromega.studio.measurepedia.ui.activities.generic import android.content.Intent +import android.content.pm.ActivityInfo import android.content.res.Configuration import android.os.Bundle import androidx.activity.ComponentActivity @@ -25,6 +26,7 @@ abstract class Activity>: Componen { super.onCreate(savedInstanceState) enableEdgeToEdge() + requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT tablesManager.instantiate(context = applicationContext) userInfo = UserInfo(context = applicationContext)