don't hold a wakelock

This commit is contained in:
Henry Larkin
2015-10-05 19:46:18 +01:00
parent fb27d745e6
commit 2bf1956c2d
@@ -18,10 +18,7 @@ public class EndlessJabberWakefulService extends IntentService {
// Get the class to call // Get the class to call
String implemenationClass = context.getSharedPreferences("EndlessJabberSDK", Context.MODE_PRIVATE).getString("InterfaceClass", null); String implemenationClass = context.getSharedPreferences("EndlessJabberSDK", Context.MODE_PRIVATE).getString("InterfaceClass", null);
if (implemenationClass == null) { if (implemenationClass != null) {
return;
}
IEndlessJabberImplementation instanceOfMyClass; IEndlessJabberImplementation instanceOfMyClass;
try { try {
instanceOfMyClass = (IEndlessJabberImplementation) Class.forName(implemenationClass).newInstance(); instanceOfMyClass = (IEndlessJabberImplementation) Class.forName(implemenationClass).newInstance();
@@ -72,7 +69,7 @@ public class EndlessJabberWakefulService extends IntentService {
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) { } catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
} }
}
EndlessJabberReceiver.completeWakefulIntent(intent); EndlessJabberReceiver.completeWakefulIntent(intent);
} }
} }