mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Refreshing fragment rather than recreating activity
This commit is contained in:
parent
f2a3c5ff24
commit
df9d43dbd8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue