jackba / worktime

Automatically exported from code.google.com/p/worktime
0 stars 0 forks source link

Add preference to choose which account sync error to show #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add an extra option in the account preferences which lets the user select for 
which errors a notification should be shown. Possibilities are:

Show error when following errors have occured
1. GeneralWebException (if something terrible went wrong at the server)
2. NoNetworkConnectionException (if there is no network connection so sync 
cannot complete)
3. WifiConnectionRequiredException (if there is no wifi and you have configured 
the app to only sync on wifi)
4. BackupException (if you configured the app to created a backup before 
synchronization and the backup failed)
5. SyncAlreadyBusyException (if another sync is already in progress you will 
have to wait until that sync is finished)
6. SynchronizationFailedException (something went wrong during synchronization 
due to corrupt data or something)

By default numbers 1, 4 and 6 should be enabled.

The preference is only enabled if the preference 
'accountSyncSuccessShowNotifications' is enabled.

In the AccountSyncService in the method handleResult(Exception) we should check 
the exception against the preference-list and only show a notification if that 
specific exception is in the list.

Original issue reported on code.google.com by dirkvran...@gmail.com on 14 Mar 2013 at 5:16

GoogleCodeExporter commented 9 years ago

Original comment by dirkvran...@gmail.com on 14 Mar 2013 at 5:16

GoogleCodeExporter commented 9 years ago
Extra option that will be enabled by default: LoginCredentialsMismatchException

Original comment by dirkvran...@gmail.com on 14 Mar 2013 at 6:06