mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +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()
|
protected void refreshView()
|
||||||
{
|
{
|
||||||
this.finish();
|
getSupportFragmentManager().beginTransaction()
|
||||||
startActivity(getIntent());
|
.replace(R.id.container, new NearbyListFragment()).commit();
|
||||||
}
|
}
|
||||||
protected LatLng getmLatestLocation() {
|
protected LatLng getmLatestLocation() {
|
||||||
return mLatestLocation;
|
return mLatestLocation;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue