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

View File

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

View File

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