Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.margelo.nitro.dev

import android.app.Activity
import android.content.res.ColorStateList
import android.view.ContextThemeWrapper
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
Expand All @@ -15,7 +16,9 @@ import com.google.android.material.shape.MaterialShapeDrawable

/** A sheet in its own window that opens at half height, and the user drags it up to fill the screen. */
internal class DevSheet(activity: Activity, style: DevStyle, content: View, private val onDismiss: () -> Unit) {
private val dialog = BottomSheetDialog(activity)
// Material only gives the sheet a shaped background under a Material theme, and the app's theme may be AppCompat.
private val dialog =
BottomSheetDialog(ContextThemeWrapper(activity, com.google.android.material.R.style.Theme_Material3_DayNight_NoActionBar))
private var isClosed = false

init {
Expand Down