Nearby map not loading on changing orientation issue solved(#2368) (#2372)

This commit is contained in:
Shubham Pinjwani 2019-02-06 02:10:57 +05:30 committed by Vivek Maskara
parent 2cd375a11b
commit 1d1088cfe5

View file

@ -448,7 +448,7 @@ public class NearbyFragment extends CommonsDaggerSupportFragment
*/
NearbyMapFragment nearbyMapFragment = getMapFragment();
if (nearbyMapFragment != null && !nearbyMapFragment.isCurrentLocationMarkerVisible()) {
if (nearbyMapFragment != null && !nearbyMapFragment.isCurrentLocationMarkerVisible() && !onOrientationChanged) {
Timber.d("Do not update the map, user is not seeing current location marker" +
" means they are checking around and moving on map");
return;