Stop initializing String.
This commit is contained in:
		
					parent
					
						
							
								219eafe6fc
							
						
					
				
			
			
				commit
				
					
						b4bb80c4d5
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue