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
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user