Moved registerForIntent() into constructors of all services

This commit is contained in:
Obique PSWG
2015-11-01 09:41:07 -06:00
parent 1a261a6556
commit ccad047e4f
26 changed files with 64 additions and 83 deletions
+4 -1
View File
@@ -43,13 +43,16 @@ public abstract class Service implements IntentReceiver {
private static final OutboundPacketService outboundPacketService = new OutboundPacketService();
public Service() {
IntentManager.getInstance().initialize();
}
/**
* Initializes this service. If the service returns false on this method
* then the initialization failed and may not work as intended.
* @return TRUE if initialization was successful, FALSE otherwise
*/
public boolean initialize() {
IntentManager.getInstance().initialize();
return DataManager.getInstance().isInitialized();
}