Commit 80619fa2 authored by Varun Patil's avatar Varun Patil

Stop GPS onPause in FileComplaintFragment

parent a9cada49
......@@ -242,6 +242,14 @@ public class FileComplaintFragment extends Fragment {
return view;
}
@Override
public void onPause() {
try {
if (googleMap != null) googleMap.setMyLocationEnabled(false);
} catch (SecurityException ignored) {}
super.onPause();
}
private void initviews(View view) {
LinearLayout imageViewHolder = view.findViewById(R.id.image_holder_view);
CollapsingToolbarLayout.LayoutParams layoutParams = new CollapsingToolbarLayout.LayoutParams(
......
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