mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-13 22:20:17 +02:00
[Home] Change card swipe direction to left. Add config dialog to bottom sheet.
This commit is contained in:
@ -16,7 +16,7 @@ class CardItemTouchHelperCallback(private val cardAdapter: HomeCardAdapter, priv
|
||||
companion object {
|
||||
private const val TAG = "CardItemTouchHelperCallback"
|
||||
private const val DRAG_FLAGS = UP or DOWN
|
||||
private const val SWIPE_FLAGS = RIGHT
|
||||
private const val SWIPE_FLAGS = LEFT
|
||||
}
|
||||
|
||||
private var dragCardView: MaterialCardView? = null
|
||||
|
@ -94,6 +94,13 @@ class HomeFragment : Fragment(), CoroutineScope {
|
||||
return
|
||||
|
||||
activity.bottomSheet.prependItems(
|
||||
BottomSheetPrimaryItem(true)
|
||||
.withTitle(R.string.menu_add_remove_cards)
|
||||
.withIcon(Icon.cmd_card_bulleted_settings_outline)
|
||||
.withOnClickListener(OnClickListener {
|
||||
activity.bottomSheet.close()
|
||||
HomeConfigDialog(activity, reloadOnDismiss = true)
|
||||
}),
|
||||
BottomSheetPrimaryItem(true)
|
||||
.withTitle(R.string.menu_set_student_number)
|
||||
.withIcon(SzkolnyFont.Icon.szf_clipboard_list_outline)
|
||||
|
Reference in New Issue
Block a user