mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +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();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
nearbyAsyncTask.cancel(true);
|
||||
}
|
||||
|
||||
protected void refreshView() {
|
||||
nearbyAsyncTask = new NearbyAsyncTask(this);
|
||||
nearbyAsyncTask.execute();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue