fixed dark overlay not disappearing after bottom dialog has been dismissed

This commit is contained in:
X1nto 2021-04-20 18:08:55 +04:00
parent 33d059d002
commit 8bdeff3c83
2 changed files with 2 additions and 1 deletions

View File

@ -100,6 +100,7 @@ dependencies {
// AndroidX
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("androidx.activity:activity-ktx:1.2.2")
implementation("androidx.browser:browser:1.3.0")
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
implementation("androidx.core:core-ktx:1.3.2")

View File

@ -6,6 +6,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.fragment.app.DialogFragment
import androidx.viewbinding.ViewBinding
import com.google.android.material.bottomsheet.BottomSheetBehavior
import com.google.android.material.bottomsheet.BottomSheetDialog
@ -33,7 +34,6 @@ abstract class BindingBottomSheetDialogFragment<VB : ViewBinding> : BottomSheetD
if (bottomSheetDialogFragment != null) {
BottomSheetBehavior.from(bottomSheetDialogFragment).apply {
state = BottomSheetBehavior.STATE_EXPANDED
peekHeight = 0
}
}
}