Commit 290e2426 authored by Varun Patil's avatar Varun Patil

Show location beta warning

parent 7f5e1de7
...@@ -1067,6 +1067,7 @@ public class MapFragment extends Fragment implements TextWatcher, ...@@ -1067,6 +1067,7 @@ public class MapFragment extends Fragment implements TextWatcher,
new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
MY_PERMISSIONS_REQUEST_LOCATION); MY_PERMISSIONS_REQUEST_LOCATION);
} else { } else {
Toast.makeText(getContext(), "WARNING: Location is in Beta. Use with Caution.", Toast.LENGTH_LONG).show();
LocationManager locationManager = (LocationManager) LocationManager locationManager = (LocationManager)
getActivity().getSystemService(Context.LOCATION_SERVICE); getActivity().getSystemService(Context.LOCATION_SERVICE);
LocationListener locationListener = new MyLocationListener(); LocationListener locationListener = new MyLocationListener();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment