Add process for when the createdAt is null.

This commit is contained in:
kyori 2018-08-20 19:29:58 +09:00
parent 6325f159f4
commit 6c10b6dbe9
2 changed files with 6 additions and 2 deletions

View File

@ -388,8 +388,10 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
}
time = sdf.format(createdAt);
timestampInfo.setText(time);
} else {
time = "??:??:??";
}
timestampInfo.setText(time);
} else {
// This is the visible timestampInfo.
String readout;

View File

@ -142,8 +142,10 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
sdf = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
}
time = sdf.format(createdAt);
timestampInfo.setText(time);
} else {
time = "??:??:??";
}
timestampInfo.setText(time);
} else {
// This is the visible timestampInfo.
String readout;