Add process for when the createdAt is null.
This commit is contained in:
parent
b4bb80c4d5
commit
4264fc42d6
|
@ -388,8 +388,10 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
||||||
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
||||||
}
|
}
|
||||||
time = sdf.format(createdAt);
|
time = sdf.format(createdAt);
|
||||||
timestampInfo.setText(time);
|
} else {
|
||||||
|
time = "??:??:??";
|
||||||
}
|
}
|
||||||
|
timestampInfo.setText(time);
|
||||||
} else {
|
} else {
|
||||||
// This is the visible timestampInfo.
|
// This is the visible timestampInfo.
|
||||||
String readout;
|
String readout;
|
||||||
|
|
|
@ -142,8 +142,10 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
||||||
}
|
}
|
||||||
time = sdf.format(createdAt);
|
time = sdf.format(createdAt);
|
||||||
timestampInfo.setText(time);
|
} else {
|
||||||
|
time = "??:??:??";
|
||||||
}
|
}
|
||||||
|
timestampInfo.setText(time);
|
||||||
} else {
|
} else {
|
||||||
// This is the visible timestampInfo.
|
// This is the visible timestampInfo.
|
||||||
String readout;
|
String readout;
|
||||||
|
|
Loading…
Reference in New Issue