fixed regression that led to the wakelock not being released again
This commit is contained in:
parent
655565eccc
commit
57ded7ee58
|
@ -523,7 +523,6 @@ public class XmppConnectionService extends Service {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||||
this.wakeLock.acquire();
|
|
||||||
if ((intent != null)
|
if ((intent != null)
|
||||||
&& (ACTION_MERGE_PHONE_CONTACTS.equals(intent.getAction()))) {
|
&& (ACTION_MERGE_PHONE_CONTACTS.equals(intent.getAction()))) {
|
||||||
mergePhoneContactsWithRoster();
|
mergePhoneContactsWithRoster();
|
||||||
|
@ -533,6 +532,7 @@ public class XmppConnectionService extends Service {
|
||||||
logoutAndSave();
|
logoutAndSave();
|
||||||
return START_NOT_STICKY;
|
return START_NOT_STICKY;
|
||||||
}
|
}
|
||||||
|
this.wakeLock.acquire();
|
||||||
ConnectivityManager cm = (ConnectivityManager) getApplicationContext()
|
ConnectivityManager cm = (ConnectivityManager) getApplicationContext()
|
||||||
.getSystemService(Context.CONNECTIVITY_SERVICE);
|
.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||||
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
|
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
|
||||||
|
|
Loading…
Reference in New Issue