mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-24 22:51:48 -05:00
Removed useless try block
This commit is contained in:
parent
2d1f9f9c84
commit
f345c33728
@ -86,7 +86,6 @@ public class MailService extends CoreService {
|
|||||||
@Override
|
@Override
|
||||||
public void startService(Intent intent, int startId) {
|
public void startService(Intent intent, int startId) {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
try {
|
|
||||||
boolean oldIsSyncDisabled = isSyncDisabled();
|
boolean oldIsSyncDisabled = isSyncDisabled();
|
||||||
ConnectivityManager connectivityManager = (ConnectivityManager)getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
|
ConnectivityManager connectivityManager = (ConnectivityManager)getApplication().getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
boolean doBackground = true;
|
boolean doBackground = true;
|
||||||
@ -168,9 +167,7 @@ public class MailService extends CoreService {
|
|||||||
if (isSyncDisabled() != oldIsSyncDisabled) {
|
if (isSyncDisabled() != oldIsSyncDisabled) {
|
||||||
MessagingController.getInstance(getApplication()).systemStatusChanged();
|
MessagingController.getInstance(getApplication()).systemStatusChanged();
|
||||||
}
|
}
|
||||||
} finally {
|
|
||||||
/* nothing to do */
|
|
||||||
}
|
|
||||||
if (K9.DEBUG)
|
if (K9.DEBUG)
|
||||||
Log.i(K9.LOG_TAG, "MailService.onStart took " + (System.currentTimeMillis() - startTime) + "ms");
|
Log.i(K9.LOG_TAG, "MailService.onStart took " + (System.currentTimeMillis() - startTime) + "ms");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user