[android] reset country only in case if it's null

This commit is contained in:
Alexey Osminin 2020-11-13 12:37:03 +03:00 committed by Alexander Boriskov
parent 5f73342c35
commit 7d25c4cca9

View file

@ -39,7 +39,6 @@ import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.mapswithme.maps.Framework;
import com.mapswithme.maps.MwmActivity;
import com.mapswithme.maps.MwmApplication;
@ -1164,8 +1163,8 @@ public class PlacePageView extends NestedScrollViewClickFixed
{
listener.onSetMapObjectComplete(policy, true);
}
detachCountry();
setCurrentCountry();
if (mCurrentCountry == null)
setCurrentCountry();
return;
}