fix some codacy issues

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-02-08 09:57:01 +01:00
parent 869c4a91e7
commit 9b8cd0bca4
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -92,9 +92,7 @@ public class UploadListAdapter extends SectionedRecyclerViewAdapter<SectionedVie
group.getGroupName(), group.getGroupItemCount()));
headerViewHolder.title.setTextColor(ThemeUtils.primaryAccentColor(parentActivity));
headerViewHolder.title.setOnClickListener(v -> {
toggleSectionExpanded(section);
});
headerViewHolder.title.setOnClickListener(v -> toggleSectionExpanded(section));
switch (group.type) {
case CURRENT:
@ -126,6 +124,10 @@ public class UploadListAdapter extends SectionedRecyclerViewAdapter<SectionedVie
new Thread(() -> new FileUploader.UploadRequester()
.retryFailedUploads(parentActivity, null, null)).start();
break;
default:
// do nothing
break;
}
loadUploadItemsFromDb();
@ -615,34 +617,34 @@ public class UploadListAdapter extends SectionedRecyclerViewAdapter<SectionedVie
static class ItemViewHolder extends SectionedViewHolder {
@BindView(R.id.upload_name)
TextView name;
public TextView name;
@BindView(R.id.thumbnail)
ImageView thumbnail;
public ImageView thumbnail;
@BindView(R.id.upload_file_size)
TextView fileSize;
public TextView fileSize;
@BindView(R.id.upload_date)
TextView date;
public TextView date;
@BindView(R.id.upload_status)
TextView status;
public TextView status;
@BindView(R.id.upload_account)
TextView account;
public TextView account;
@BindView(R.id.upload_remote_path)
TextView remotePath;
public TextView remotePath;
@BindView(R.id.upload_progress_bar)
ProgressBar progressBar;
public ProgressBar progressBar;
@BindView(R.id.upload_right_button)
ImageButton button;
public ImageButton button;
@BindView(R.id.upload_list_item_layout)
LinearLayout itemLayout;
public LinearLayout itemLayout;
ItemViewHolder(View itemView) {
super(itemView);