force app to portrait orientation
This commit is contained in:
parent
382bc7310a
commit
5101dead24
|
@ -19,6 +19,7 @@
|
|||
|
||||
package at.connyduck.pixelcat.components.general
|
||||
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.os.Bundle
|
||||
import at.connyduck.pixelcat.R
|
||||
import at.connyduck.pixelcat.components.settings.AppSettings
|
||||
|
@ -33,6 +34,8 @@ abstract class BaseActivity : DaggerAppCompatActivity() {
|
|||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||
|
||||
theme.applyStyle(appSettings.getAppColorStyle(), true)
|
||||
if (!appSettings.useSystemFont()) {
|
||||
theme.applyStyle(R.style.NunitoFont, true)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
package at.connyduck.pixelcat.components.splash
|
||||
|
||||
import android.content.pm.ActivityInfo
|
||||
import android.os.Bundle
|
||||
import androidx.lifecycle.lifecycleScope
|
||||
import at.connyduck.pixelcat.components.login.LoginActivity
|
||||
|
@ -36,6 +37,8 @@ class SplashActivity : DaggerAppCompatActivity() {
|
|||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
|
||||
|
||||
lifecycleScope.launch {
|
||||
|
||||
val intent = if (accountManager.activeAccount() != null) {
|
||||
|
|
Loading…
Reference in New Issue