Display the correct wording int the feed layout for the default folder

This commit is contained in:
Shinokuni 2019-03-09 21:36:09 +01:00
parent 5df6e1ed27
commit b1631e9d0d

View File

@ -120,7 +120,10 @@ public class FeedsAdapter extends ListAdapter<FeedWithFolder, FeedsAdapter.ViewH
}
if (bundle.getString(FOLDER_NAME_KEY) != null) {
holder.folderName.setText(bundle.getString(FOLDER_NAME_KEY));
if (getItem(position).getFolder().getId() != 1)
holder.folderName.setText(bundle.getString(FOLDER_NAME_KEY));
else
holder.folderName.setText(holder.itemView.getContext().getString(R.string.no_folder));
}
} else
onBindViewHolder(holder, position);