mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix multiple selection
This commit is contained in:
@@ -199,4 +199,15 @@ class HabitsTest : BaseUserInterfaceTest() {
|
|||||||
verifyDisplaysText("Track time")
|
verifyDisplaysText("Track time")
|
||||||
verifyDisplaysText("Wake up early")
|
verifyDisplaysText("Wake up early")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@Throws(Exception::class)
|
||||||
|
fun shouldAllowMultipleSelection() {
|
||||||
|
launchApp()
|
||||||
|
verifyShowsScreen(LIST_HABITS)
|
||||||
|
verifyDisplaysText("Track time")
|
||||||
|
longClickText("Wake up early")
|
||||||
|
longClickText("Track time")
|
||||||
|
verifyDisplaysText("2")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ class HabitCardListController @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun notifyListener() {
|
private fun notifyListener() {
|
||||||
if (activeMode === SelectionMode())
|
if (activeMode is SelectionMode)
|
||||||
selectionMenu.get().onSelectionChange()
|
selectionMenu.get().onSelectionChange()
|
||||||
else
|
else
|
||||||
selectionMenu.get().onSelectionFinish()
|
selectionMenu.get().onSelectionFinish()
|
||||||
|
|||||||
Reference in New Issue
Block a user