Merge 2.10 with master & Fixed merge conflicts (#2844)

This commit is contained in:
Ashish Kumar 2019-04-03 22:39:54 +05:30 committed by Josephine Lim
parent 02ad3b2dc8
commit 08a555c095
18 changed files with 172 additions and 113 deletions

View file

@ -259,10 +259,6 @@ public class Contribution extends Media {
return "{{self|cc-by-sa-4.0}}";
case Prefs.Licenses.CC0:
return "{{self|cc-zero}}";
case Prefs.Licenses.CC_BY:
return "{{self|cc-by-3.0}}";
case Prefs.Licenses.CC_BY_SA:
return "{{self|cc-by-sa-3.0}}";
}
throw new RuntimeException("Unrecognized license value: " + license);

View file

@ -9,10 +9,9 @@ import android.net.Uri;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import android.text.TextUtils;
import fr.free.nrw.commons.settings.Prefs;
import org.apache.commons.lang3.StringUtils;
import fr.free.nrw.commons.settings.Prefs;
import java.util.Date;
import javax.inject.Inject;
import javax.inject.Named;
@ -320,7 +319,7 @@ public class ContributionDao {
try {
db.execSQL(query);
} catch (SQLiteException e) {
Timber.e(e, "Exception performing query: " + query);
Timber.e("Exception performing query: " + query + " message: " + e.getMessage());
}
}