mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 13:05:11 +00:00
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…
Reference in a new issue