Some fixes

This commit is contained in:
stom79 2018-11-10 08:22:13 +01:00
parent 5d7f69aa24
commit c1848ffdc4
3 changed files with 8 additions and 1 deletions

View File

@ -1220,6 +1220,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
} }
}else { }else {
holder.status_cardview.setVisibility(View.GONE); holder.status_cardview.setVisibility(View.GONE);
holder.status_cardview_video.setVisibility(View.GONE);
} }
holder.status_reply.setOnClickListener(new View.OnClickListener() { holder.status_reply.setOnClickListener(new View.OnClickListener() {

View File

@ -2032,7 +2032,12 @@ public class Helper {
*/ */
public static ArrayList<Attachment> restoreAttachmentFromString(String serializedAttachment){ public static ArrayList<Attachment> restoreAttachmentFromString(String serializedAttachment){
Type listType = new TypeToken<ArrayList<Attachment>>(){}.getType(); Type listType = new TypeToken<ArrayList<Attachment>>(){}.getType();
return new Gson().fromJson(serializedAttachment, listType); try {
return new Gson().fromJson(serializedAttachment, listType);
}catch (Exception e){
e.printStackTrace();
return null;
}
} }

View File

@ -283,6 +283,7 @@
<LinearLayout <LinearLayout
android:id="@+id/status_cardview" android:id="@+id/status_cardview"
android:visibility="gone"
android:layout_marginBottom="5dp" android:layout_marginBottom="5dp"
android:background="@drawable/card_border" android:background="@drawable/card_border"
android:layout_width="match_parent" android:layout_width="match_parent"