Skip to content

Commit a5796f2

Browse files
author
Atanas Dimitrov
committed
Add another method for getting the Kalman Service. However, if it's not already initalized, the method will return null.
1 parent c1eca46 commit a5796f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

madlocationmanager/src/main/java/mad/location/manager/lib/Services/ServicesHelper.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
import android.content.ServiceConnection;
77
import android.os.IBinder;
88

9+
import java.util.ArrayList;
10+
import java.util.List;
11+
912
import mad.location.manager.lib.Interfaces.LocationServiceInterface;
1013
import mad.location.manager.lib.Interfaces.LocationServiceStatusInterface;
1114
import mad.location.manager.lib.Interfaces.SimpleTempCallback;
1215

13-
import java.util.ArrayList;
14-
import java.util.List;
15-
1616
/**
1717
* Created by lezh1k on 2/13/18.
1818
*/
@@ -107,4 +107,7 @@ public static void getLocationService(Context context, SimpleTempCallback<Kalman
107107
}
108108
}
109109

110+
public static KalmanLocationService getLocationService() {
111+
return instance.kalmanLocationService;
112+
}
110113
}

0 commit comments

Comments
 (0)