Fix codecy failures

This commit is contained in:
Dinu Kumarasiri 2017-05-15 11:32:48 +02:00
parent 83727e43e6
commit a2a2589df3

View file

@ -399,12 +399,11 @@ public class MediaDetailFragment extends Fragment {
private String prettyUploadedDate(Media media) {
Date date = media.getDateUploaded();
if(date.toString() == null || date.toString().isEmpty()) {
if (date.toString() == null || date.toString().isEmpty()) {
return "Uploaded date not available";
}
SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy");
String formattedDate = formatter.format(date);
// Timber.d("Media uploaded date is: s%", formattedDate);
return formattedDate;
}