156 |
} |
} |
157 |
|
|
158 |
} else { |
} else { |
159 |
|
((TextView)findViewById(R.id.stationsearch)).setText( savedInstanceState.getString( "search") ); |
160 |
|
|
161 |
stations = (StationBean) savedInstanceState.getSerializable("stations"); |
stations = (StationBean) savedInstanceState.getSerializable("stations"); |
162 |
adapter.setStations(stations); |
adapter.setStations(stations); |
163 |
} |
} |
240 |
if (dialog != null && dialog.isShowing()) |
if (dialog != null && dialog.isShowing()) |
241 |
dialog.dismiss(); |
dialog.dismiss(); |
242 |
outState.putSerializable("stations", (StationBean) stations); |
outState.putSerializable("stations", (StationBean) stations); |
243 |
|
outState.putString("search", ((TextView)findViewById(R.id.stationsearch)).getText().toString() ); |
244 |
|
|
245 |
} |
} |
246 |
|
|