Some fixes
This commit is contained in:
parent
5d7f69aa24
commit
c1848ffdc4
|
@ -1220,6 +1220,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
}
|
||||
}else {
|
||||
holder.status_cardview.setVisibility(View.GONE);
|
||||
holder.status_cardview_video.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
holder.status_reply.setOnClickListener(new View.OnClickListener() {
|
||||
|
|
|
@ -2032,7 +2032,12 @@ public class Helper {
|
|||
*/
|
||||
public static ArrayList<Attachment> restoreAttachmentFromString(String serializedAttachment){
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -283,6 +283,7 @@
|
|||
|
||||
<LinearLayout
|
||||
android:id="@+id/status_cardview"
|
||||
android:visibility="gone"
|
||||
android:layout_marginBottom="5dp"
|
||||
android:background="@drawable/card_border"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in New Issue