Skip to content

Commit

Permalink
fix: lock screen orientation to portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
cromega08 committed Dec 20, 2024
1 parent 7c81f33 commit 046dc22
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,6 +26,7 @@ abstract class Activity<VM: ActivityViewModel, SC: ActivityScreen<VM>>: Componen
{
super.onCreate(savedInstanceState)
enableEdgeToEdge()
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT

tablesManager.instantiate(context = applicationContext)
userInfo = UserInfo(context = applicationContext)
Expand Down

0 comments on commit 046dc22

Please sign in to comment.