made listmanagers enums

This commit is contained in:
Sem van der Hoeven
2020-12-17 13:51:45 +01:00
parent 17d977bb17
commit 74fb4440ed
6 changed files with 31 additions and 11 deletions

View File

@@ -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<>();