mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-30 17:14:56 +01:00
Stop initializing String.
This commit is contained in:
parent
219eafe6fc
commit
b4bb80c4d5
@ -379,7 +379,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
||||
|
||||
protected void setCreatedAt(@Nullable Date createdAt) {
|
||||
if (useAbsoluteTime) {
|
||||
String time = "ERROR!";
|
||||
String time;
|
||||
if (createdAt != null) {
|
||||
SimpleDateFormat sdf;
|
||||
if (new Date().getTime() - createdAt.getTime() > 86400000L) {
|
||||
|
@ -133,7 +133,7 @@ abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
protected void setCreatedAt(@Nullable Date createdAt) {
|
||||
if (useAbsoluteTime) {
|
||||
String time = "ERROR!";
|
||||
String time;
|
||||
if (createdAt != null) {
|
||||
SimpleDateFormat sdf;
|
||||
if (new Date().getTime() - createdAt.getTime() > 86400000L) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user