diff --git a/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt b/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt index a16bb5d8..1807a66e 100644 --- a/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt +++ b/qmobileui/src/main/java/com/qmobile/qmobileui/activity/mainactivity/MainActivity.kt @@ -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 @@ -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() }