made listmanagers enums
This commit is contained in:
@@ -100,6 +100,9 @@ public class HomeFragment extends Fragment {
|
||||
// add location manager and set the start point
|
||||
LocationManager locationManager = (LocationManager) requireActivity().getSystemService(Context.LOCATION_SERVICE);
|
||||
|
||||
LocationListManager.INSTANCE.load();
|
||||
|
||||
|
||||
try {
|
||||
Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
||||
GeoPoint startPoint = new GeoPoint(location.getLatitude(), location.getLongitude());
|
||||
@@ -116,10 +119,6 @@ public class HomeFragment extends Fragment {
|
||||
|
||||
}
|
||||
|
||||
CouponListManager couponListManager = new CouponListManager(requireContext());
|
||||
couponListManager.load();
|
||||
Log.d(TAG, "initMap: " + couponListManager.getCoupon(0).getCode());
|
||||
|
||||
}
|
||||
private void requestPermissionsIfNecessary(String... permissions) {
|
||||
ArrayList<String> permissionsToRequest = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user