Issue with nsfw buttons

This commit is contained in:
stom79 2018-01-26 18:07:26 +01:00
parent 48e816f021
commit 612b97a43b
2 changed files with 1 additions and 3 deletions

View File

@ -1080,7 +1080,6 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
@Override
public void onClick(View v) {
loadAttachments(status, holder);
holder.status_show_more.setVisibility(View.GONE);
status.setAttachmentShown(true);
notifyStatusChanged(status);
/*
@ -1101,7 +1100,6 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
public void onFinish() {
status.setAttachmentShown(false);
holder.status_show_more.setVisibility(View.VISIBLE);
notifyStatusChanged(status);
}
}.start();

View File

@ -1201,7 +1201,7 @@ public class Helper {
.load(urlHeader)
.into(new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) {
public void onResourceReady(@NonNull Bitmap resource, Transition<? super Bitmap> transition) {
ImageView backgroundImage = headerLayout.findViewById(R.id.back_ground_image);
backgroundImage.setImageBitmap(resource);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {