forked from upstream-mirrors/quik
don't hold a wakelock
This commit is contained in:
+2
-5
@@ -18,10 +18,7 @@ public class EndlessJabberWakefulService extends IntentService {
|
||||
// Get the class to call
|
||||
String implemenationClass = context.getSharedPreferences("EndlessJabberSDK", Context.MODE_PRIVATE).getString("InterfaceClass", null);
|
||||
|
||||
if (implemenationClass == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (implemenationClass != null) {
|
||||
IEndlessJabberImplementation instanceOfMyClass;
|
||||
try {
|
||||
instanceOfMyClass = (IEndlessJabberImplementation) Class.forName(implemenationClass).newInstance();
|
||||
@@ -72,7 +69,7 @@ public class EndlessJabberWakefulService extends IntentService {
|
||||
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
EndlessJabberReceiver.completeWakefulIntent(intent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user