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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user