Fixes to some errors found by lint ("Inspect code" on Android Studio)

See also #171.
This commit is contained in:
Yusuke Matsubara 2016-09-03 19:50:09 +09:00
parent 7dd512b2d9
commit 41ffd993d1
3 changed files with 3 additions and 4 deletions

View file

@ -149,7 +149,7 @@ public class UploadService extends HandlerService<Contribution> {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if(intent.getAction() == ACTION_START_SERVICE && freshStart) {
if(intent.getAction().equals(ACTION_START_SERVICE) && freshStart) {
ContentValues failedValues = new ContentValues();
failedValues.put(Contribution.Table.COLUMN_STATE, Contribution.STATE_FAILED);