Skip to content

Commit

Permalink
Support new app info property to lock orientation #21
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Aug 14, 2024
1 parent 83e59bd commit 1987799
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.ActivityInfo
import android.net.ConnectivityManager
import android.net.Uri
import android.os.Build
Expand Down Expand Up @@ -162,6 +163,8 @@ class MainActivity :
ToastMessage.context = getApplicationContext()
super.onCreate(savedInstanceState)

if (BaseApp.runtimeDataHolder.lockOrientation) setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)

signalHandler = SignalHandler(this).apply {
initSignalHandler()
}
Expand Down

0 comments on commit 1987799

Please sign in to comment.