Samples: reorder theme dispose

This commit is contained in:
Emux 2020-12-28 14:12:01 +02:00
parent 7d6c623a80
commit b2fd22885e
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3
2 changed files with 5 additions and 5 deletions
vtm-android-example/src/org/oscim/android/test

@ -122,8 +122,8 @@ public class GettingStarted extends Activity {
@Override
protected void onDestroy() {
theme.dispose();
mapView.onDestroy();
theme.dispose();
super.onDestroy();
}
}

@ -112,14 +112,14 @@ public class MapFragment extends Fragment {
@Override
public void onDestroyView() {
if (theme != null) {
theme.dispose();
theme = null;
}
if (mapView != null) {
mapView.onDestroy();
mapView = null;
}
if (theme != null) {
theme.dispose();
theme = null;
}
super.onDestroyView();
}
}