Make default label removable

This commit is contained in:
tarsin committed 2022-08-05 21:14:38 +08:00
1 parent 6cd498af6a
commit 7e6e1f6f14
1 file changed
+4 -2
@@ -1399,8 +1399,10 @@ public class DownloadsScene extends ToolbarScene
int position = viewHolder.getBindingAdapterPosition();
if (mDownloadManager == null)
return;
String label = mLabels.get(position);
mDownloadManager.deleteLabel(label);
if (position != 0) {
String label = mLabels.get(position);
mDownloadManager.deleteLabel(label);
}
mLabels.remove(position);
mLabelAdapter.notifyDataSetChanged();
}