Fix reordering labels
This commit is contained in:
3 files changed
+5
-3
No files matched your search
@@ -1124,7 +1124,8 @@ public class DownloadsScene extends ToolbarScene
|
||||
}
|
||||
|
||||
EhApplication.getDownloadManager(context).moveLabel(fromPosition - 1, toPosition - 1);
|
||||
Collections.swap(mLabels, fromPosition, toPosition);
|
||||
final String item = mLabels.remove(fromPosition);
|
||||
mLabels.add(toPosition, item);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1697,8 +1697,9 @@ public final class GalleryListScene extends BaseScene
|
||||
if (null == mQuickSearchList) {
|
||||
return;
|
||||
}
|
||||
Collections.swap(mQuickSearchList, fromPosition, toPosition);
|
||||
EhDB.moveQuickSearch(fromPosition, toPosition);
|
||||
final QuickSearch item = mQuickSearchList.remove(fromPosition);
|
||||
mQuickSearchList.add(toPosition, item);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user