Also set snackbar container for FlashFragment

This commit is contained in:
canyie 2022-06-04 01:36:37 +08:00 committed by John Wu
parent 0e7fe537e3
commit aadb2d825c
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class FlashFragment : BaseFragment<FragmentFlashMd2Binding>() {
override val layoutRes = R.layout.fragment_flash_md2
override val viewModel by viewModel<FlashViewModel>()
override val snackbarView: View get() = binding.snackbarContainer
private var defaultOrientation = -1

View File

@ -54,6 +54,12 @@
app:icon="@drawable/ic_restart"
app:iconTint="?colorOnPrimary" />
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/snackbar_container"
app:fitsSystemWindowsInsets="top|bottom"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>