Skip to content

Commit

Permalink
Merge pull request #1 from noriokun4649/fix_oreo_bug
Browse files Browse the repository at this point in the history
Android Oreoのバグを踏まないように変更
  • Loading branch information
daig0rian authored Jun 27, 2021
2 parents f253bbd + 5e24f09 commit 4b682d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
android:theme="@style/CustomizedSearch"
android:screenOrientation="landscape"/>
<activity android:name=".SettingsActivity"
android:theme="@style/LeanbackPreferences"
android:screenOrientation="landscape"/>
android:theme="@style/LeanbackPreferences"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ package com.daigorian.epcltvapp


import android.app.Activity
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
import android.os.Build
import android.os.Bundle

class SettingsActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_settings)

if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O) {
requestedOrientation = SCREEN_ORIENTATION_LANDSCAPE
}
}
}

0 comments on commit 4b682d1

Please sign in to comment.