2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +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() {
actionMode.finish(); // In case we are in selection mode, finish it
saveStorageInfoList();
preferenceCategory.removeAll();
@@ -485,7 +488,6 @@ public class SftpSettingsFragment
}
}
actionMode.finish(); //This must be called before handleChangedStorageInfoList()
handleChangedStorageInfoList();
return true;
default: