Make default label removable
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user