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