small fix
This commit is contained in:
parent
f081ac31f6
commit
732eea4d9c
|
@ -555,7 +555,7 @@ public class PixelfedListAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
|
|||
holder.imageSlider.setSliderTransformAnimation(SliderAnimations.SIMPLETRANSFORMATION);
|
||||
holder.art_media.setVisibility(View.GONE);
|
||||
holder.imageSlider.setVisibility(View.VISIBLE);
|
||||
} else if (status.getMedia_attachments() != null) {
|
||||
} else if (status.getMedia_attachments() != null && status.getMedia_attachments().size() > 0) {
|
||||
holder.art_media.setVisibility(View.VISIBLE);
|
||||
holder.imageSlider.setVisibility(View.GONE);
|
||||
if (status.getMedia_attachments().get(0).getType() != null && status.getMedia_attachments().get(0).getType().toLowerCase().equals("video")) {
|
||||
|
|
|
@ -138,7 +138,7 @@ public abstract class BaseLiveNotificationService extends Service implements Net
|
|||
.setContentText(getString(R.string.top_notification_message, String.valueOf(totalAccount), String.valueOf(eventsCount))).build();
|
||||
|
||||
if (notification != null) {
|
||||
startForeground(1, notification);
|
||||
startForeground(2, notification);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
@ -319,7 +319,7 @@ public abstract class BaseLiveNotificationService extends Service implements Net
|
|||
.setSmallIcon(getNotificationIcon(BaseLiveNotificationService.this))
|
||||
.setContentText(getString(R.string.top_notification_message, String.valueOf(totalAccount), String.valueOf(eventsCount))).build();
|
||||
if (notificationChannel != null) {
|
||||
startForeground(1, notificationChannel);
|
||||
startForeground(2, notificationChannel);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue