Get rid of unnecessary indentations
This commit is contained in:
		
							parent
							
								
									96f358d94c
								
							
						
					
					
						commit
						4b32f92777
					
				| @ -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 |                 Log.d("FDroid", "Notifying updates. Apps before:" + prevUpdates | ||||||
|                         + ", apps after: " + newUpdates); |                         + ", apps after: " + newUpdates); | ||||||
|                 if (newUpdates > prevUpdates) { |  | ||||||
|                 NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( |                 NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( | ||||||
|                         this) |                         this) | ||||||
|                         .setSmallIcon(R.drawable.icon) |                         .setSmallIcon(R.drawable.icon) | ||||||
| @ -294,7 +293,6 @@ public class UpdateService extends IntentService implements ProgressListener { | |||||||
|                 NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); |                 NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); | ||||||
|                 mNotificationManager.notify(1, mBuilder.build()); |                 mNotificationManager.notify(1, mBuilder.build()); | ||||||
|             } |             } | ||||||
|             } |  | ||||||
| 
 | 
 | ||||||
|             if (!success) { |             if (!success) { | ||||||
|                 if (errmsg.length() == 0) |                 if (errmsg.length() == 0) | ||||||
| @ -302,9 +300,6 @@ public class UpdateService extends IntentService implements ProgressListener { | |||||||
|                 sendStatus(STATUS_ERROR, errmsg); |                 sendStatus(STATUS_ERROR, errmsg); | ||||||
|             } else { |             } else { | ||||||
|                 sendStatus(STATUS_COMPLETE); |                 sendStatus(STATUS_COMPLETE); | ||||||
|             } |  | ||||||
| 
 |  | ||||||
|             if (success) { |  | ||||||
|                 Editor e = prefs.edit(); |                 Editor e = prefs.edit(); | ||||||
|                 e.putLong("lastUpdateCheck", System.currentTimeMillis()); |                 e.putLong("lastUpdateCheck", System.currentTimeMillis()); | ||||||
|                 e.commit(); |                 e.commit(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Martí
						Daniel Martí