Refreshing fragment rather than recreating activity

This commit is contained in:
nextLane 2017-03-12 00:29:57 +05:30
parent f2a3c5ff24
commit df9d43dbd8

View file

@ -67,8 +67,8 @@ public class NearbyActivity extends AppCompatActivity {
protected void refreshView()
{
this.finish();
startActivity(getIntent());
getSupportFragmentManager().beginTransaction()
.replace(R.id.container, new NearbyListFragment()).commit();
}
protected LatLng getmLatestLocation() {
return mLatestLocation;