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