fix: Cancel search on back button tap on android
This commit is contained in:
parent
c42ce8d1db
commit
d2247018e6
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ class ChatListView extends StatelessWidget {
|
|||
return WillPopScope(
|
||||
onWillPop: () async {
|
||||
final selMode = controller.selectMode;
|
||||
if (controller.isSearchMode) {
|
||||
controller.cancelSearch();
|
||||
return false;
|
||||
}
|
||||
if (selMode != SelectMode.normal) {
|
||||
controller.cancelAction();
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue