Skip to content
Snippets Groups Projects
Unverified Commit 654c4448 authored by Mert Safter's avatar Mert Safter Committed by GitHub
Browse files

Remove manual set of screen orientation (Related to PR-779) (#1272)

parent b3ec381f
No related branches found
No related tags found
Loading
package de.rki.coronawarnapp
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.IntentFilter
import android.content.pm.ActivityInfo
import android.os.Bundle
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
......@@ -110,9 +108,8 @@ class CoronaWarnApplication : Application(), HasAndroidInjector {
// NOOP
}
@SuppressLint("SourceLockedOrientationActivity")
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT
// NOOP
}
override fun onActivityResumed(activity: Activity) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment