move call to super.onSaveInstanceState to top of onSaveInstanceState

This commit is contained in:
Chumva 2018-07-02 15:46:30 +03:00
parent 1a312dc2a9
commit 29fe47cb50

View file

@ -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() {