Samples: reorder theme dispose
This commit is contained in:
parent
7d6c623a80
commit
b2fd22885e
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user