Change button behavior for spoiler in notifications
This commit is contained in:
parent
74c4e22abb
commit
4f8945cbe3
|
@ -483,9 +483,8 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
loadAttachments(status, holder);
|
loadAttachments(status, holder);
|
||||||
holder.status_show_more.setVisibility(View.GONE);
|
holder.status_show_more.setVisibility(View.GONE);
|
||||||
status.setAttachmentShown(true);
|
notification.getStatus().setAttachmentShown(true);
|
||||||
notificationsListAdapter.notifyDataSetChanged();
|
notifyNotificationChanged(notification);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Added a Countdown Timer, so that Sensitive (NSFW)
|
Added a Countdown Timer, so that Sensitive (NSFW)
|
||||||
images only get displayed for user set time,
|
images only get displayed for user set time,
|
||||||
|
@ -503,10 +502,10 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onFinish() {
|
public void onFinish() {
|
||||||
status.setAttachmentShown(false);
|
notification.getStatus().setAttachmentShown(false);
|
||||||
holder.status_show_more.setVisibility(View.VISIBLE);
|
holder.status_show_more.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
notificationsListAdapter.notifyDataSetChanged();
|
notifyNotificationChanged(notification);
|
||||||
}
|
}
|
||||||
}.start();
|
}.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue