diff --git a/app/src/main/java/org/akanework/symphonica/MainActivity.kt b/app/src/main/java/org/akanework/symphonica/MainActivity.kt index 37163ac..648fab1 100644 --- a/app/src/main/java/org/akanework/symphonica/MainActivity.kt +++ b/app/src/main/java/org/akanework/symphonica/MainActivity.kt @@ -30,6 +30,7 @@ import android.content.Intent import android.content.IntentFilter import android.content.pm.PackageManager import android.content.res.ColorStateList +import android.content.res.Configuration import android.media.MediaPlayer import android.net.Uri import android.os.Bundle @@ -40,6 +41,7 @@ import android.view.View import android.view.View.GONE import android.view.View.VISIBLE import android.view.ViewGroup +import android.view.WindowManager import android.view.animation.AccelerateDecelerateInterpolator import android.widget.FrameLayout import android.widget.ImageView @@ -339,6 +341,13 @@ class MainActivity : AppCompatActivity() { playerBottomSheetBehavior = BottomSheetBehavior.from(findViewById(R.id.standard_bottom_sheet)) + if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) { + val params = window.attributes + params.layoutInDisplayCutoutMode = + WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES + window.attributes = params + } + checkIfSquigglyProgressBarEnabled() if (isSquigglyProgressBarEnabled) { trackSquigglyProgressBar() diff --git a/app/src/main/res/layout-land/global_bottom_sheet.xml b/app/src/main/res/layout-land/global_bottom_sheet.xml new file mode 100644 index 0000000..3162bb5 --- /dev/null +++ b/app/src/main/res/layout-land/global_bottom_sheet.xml @@ -0,0 +1,560 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file