mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fixes #614: Crash: Fragment State loss exception
This commit is contained in:
parent
f6a7759317
commit
5fc9f84e79
1 changed files with 6 additions and 0 deletions
|
|
@ -149,6 +149,12 @@ public class NearbyActivity extends NavigationBaseActivity {
|
||||||
checkGps();
|
checkGps();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
nearbyAsyncTask.cancel(true);
|
||||||
|
}
|
||||||
|
|
||||||
protected void refreshView() {
|
protected void refreshView() {
|
||||||
nearbyAsyncTask = new NearbyAsyncTask(this);
|
nearbyAsyncTask = new NearbyAsyncTask(this);
|
||||||
nearbyAsyncTask.execute();
|
nearbyAsyncTask.execute();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue