Make default label removable

This commit is contained in:
tarsin authored and txyyh committed 2022-08-22 09:58:27 +00:00
1 parent 00c2e683bd
commit edda52159e
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();
}