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