Skip to content
Snippets Groups Projects
Commit e7c905d4 authored by Anthony Laye's avatar Anthony Laye
Browse files

Fix non homogeneous messages on android for calls

Change-Id: Ib91875a70c0cfde1a259b1dec830dce7f538194f
parent 8763af59
Branches release/201808
Tags
No related merge requests found
......@@ -141,10 +141,14 @@ public class SmartListAdapter extends RecyclerView.Adapter<SmartListViewHolder>
private String getLastEventSummary(ConversationElement e, Context context) {
if (e instanceof HistoryCall) {
HistoryCall call = (HistoryCall) e;
if (call.isIncoming())
return String.format(context.getString(R.string.hist_in_call), call.getDurationString());
if (call.isMissed())
return call.isIncoming() ?
context.getString(R.string.notif_missed_incoming_call) :
context.getString(R.string.notif_missed_outgoing_call);
else
return String.format(context.getString(R.string.hist_out_call), call.getDurationString());
return call.isIncoming() ?
String.format(context.getString(R.string.hist_in_call), call.getDurationString()) :
String.format(context.getString(R.string.hist_out_call), call.getDurationString());
} else if (e instanceof TextMessage) {
TextMessage t = (TextMessage) e;
if (t.isIncoming()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment