remove unnecessary call to activity
This commit is contained in:
parent
3ef000c7af
commit
15f4a6555e
1 changed files with 2 additions and 4 deletions
|
@ -1249,10 +1249,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements
|
|||
protected void onPreExecute() {
|
||||
TrackPointFragment fragment = fragmentRef.get();
|
||||
if (fragment != null) {
|
||||
TrackActivity activity = fragment.getTrackActivity();
|
||||
if (activity != null) {
|
||||
activity.setSupportProgressBarIndeterminateVisibility(true);
|
||||
}
|
||||
fragment.showProgressBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1283,6 +1280,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements
|
|||
TrackPointFragment fragment = fragmentRef.get();
|
||||
if (gpx != null) {
|
||||
if (fragment != null && fragment.getTrackActivity() != null) {
|
||||
fragment.hideProgressBar();
|
||||
fragment.shareGpx(gpx.path);
|
||||
}
|
||||
if (shouldClearPath) {
|
||||
|
|
Loading…
Reference in a new issue