Stop unnecesary unboxing of values

This commit is contained in:
addshore 2017-05-13 12:53:00 +02:00
parent 5f6f67d3e2
commit 85182e3fb7
2 changed files with 2 additions and 2 deletions

View file

@ -195,7 +195,7 @@ public class Contribution extends Media {
cv.put(Table.COLUMN_LOCAL_URI, getLocalUri().toString());
}
if(getImageUrl() != null) {
cv.put(Table.COLUMN_IMAGE_URL, getImageUrl().toString());
cv.put(Table.COLUMN_IMAGE_URL, getImageUrl());
}
if(getDateUploaded() != null) {
cv.put(Table.COLUMN_UPLOADED, getDateUploaded().getTime());

View file

@ -220,7 +220,7 @@ public class MediaDetailFragment extends Fragment {
protected void onPostExecute(Boolean success) {
detailFetchTask = null;
if (success.booleanValue()) {
if (success) {
extractor.fill(media);
// Set text of desc, license, and categories