Get rid of unnecessary indentations

This commit is contained in:
Daniel Martí 2013-07-21 17:03:26 +02:00
parent 96f358d94c
commit 4b32f92777

View File

@ -262,10 +262,9 @@ public class UpdateService extends IntentService implements ProgressListener {
}
if (success && changes && notify) {
if (success && changes && notify && (newUpdates > prevUpdates)) {
Log.d("FDroid", "Notifying updates. Apps before:" + prevUpdates
+ ", apps after: " + newUpdates);
if (newUpdates > prevUpdates) {
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(
this)
.setSmallIcon(R.drawable.icon)
@ -294,7 +293,6 @@ public class UpdateService extends IntentService implements ProgressListener {
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(1, mBuilder.build());
}
}
if (!success) {
if (errmsg.length() == 0)
@ -302,9 +300,6 @@ public class UpdateService extends IntentService implements ProgressListener {
sendStatus(STATUS_ERROR, errmsg);
} else {
sendStatus(STATUS_COMPLETE);
}
if (success) {
Editor e = prefs.edit();
e.putLong("lastUpdateCheck", System.currentTimeMillis());
e.commit();