Commit aadb2d82 authored by 石松洲's avatar 石松洲 Committed by John Wu

Also set snackbar container for FlashFragment

parent 0e7fe537
...@@ -20,6 +20,7 @@ class FlashFragment : BaseFragment<FragmentFlashMd2Binding>() { ...@@ -20,6 +20,7 @@ class FlashFragment : BaseFragment<FragmentFlashMd2Binding>() {
override val layoutRes = R.layout.fragment_flash_md2 override val layoutRes = R.layout.fragment_flash_md2
override val viewModel by viewModel<FlashViewModel>() override val viewModel by viewModel<FlashViewModel>()
override val snackbarView: View get() = binding.snackbarContainer
private var defaultOrientation = -1 private var defaultOrientation = -1
......
...@@ -54,6 +54,12 @@ ...@@ -54,6 +54,12 @@
app:icon="@drawable/ic_restart" app:icon="@drawable/ic_restart"
app:iconTint="?colorOnPrimary" /> 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> </androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout> </layout>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment