2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-01 06:35:09 +00:00

Fix inconsistent state if adding a new storage when in action mode

This commit is contained in:
Albert Vaca Cintora
2019-09-20 00:54:11 +02:00
parent d8cbc38532
commit 2ea3ecbdba

View File

@@ -403,6 +403,9 @@ public class SftpSettingsFragment
} }
private void handleChangedStorageInfoList() { private void handleChangedStorageInfoList() {
actionMode.finish(); // In case we are in selection mode, finish it
saveStorageInfoList(); saveStorageInfoList();
preferenceCategory.removeAll(); preferenceCategory.removeAll();
@@ -485,7 +488,6 @@ public class SftpSettingsFragment
} }
} }
actionMode.finish(); //This must be called before handleChangedStorageInfoList()
handleChangedStorageInfoList(); handleChangedStorageInfoList();
return true; return true;
default: default: