move call to super.onSaveInstanceState to top of onSaveInstanceState
This commit is contained in:
parent
1a312dc2a9
commit
29fe47cb50
1 changed files with 1 additions and 1 deletions
|
@ -556,10 +556,10 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(Bundle outState) {
|
public void onSaveInstanceState(Bundle outState) {
|
||||||
|
super.onSaveInstanceState(outState);
|
||||||
if (selectedWpt != null) {
|
if (selectedWpt != null) {
|
||||||
outState.putInt(SELECTED_POINT_KEY, adapter.getItemPosition(selectedWpt));
|
outState.putInt(SELECTED_POINT_KEY, adapter.getItemPosition(selectedWpt));
|
||||||
}
|
}
|
||||||
super.onSaveInstanceState(outState);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void scrollToLastPoint() {
|
private void scrollToLastPoint() {
|
||||||
|
|
Loading…
Reference in a new issue