Lambda usage simplifications (#1928)

* Replace anonymous type with lambda
* Use method reference
* Replace with expression lambda
This commit is contained in:
Edward Savage 2018-11-02 14:28:42 -04:00 committed by Adam Jones
parent 1f8063284c
commit e8f4a286c5
12 changed files with 57 additions and 110 deletions

View file

@ -65,9 +65,7 @@ public class PicOfDayAppWidget extends AppWidgetProvider {
loadImageFromUrl(response.getImageUrl(), context, views, appWidgetManager, appWidgetId);
}
},
t -> {
Timber.e(t, "Fetching picture of the day failed");
}
t -> Timber.e(t, "Fetching picture of the day failed")
));
}