DroidFish: Fixed NPE when rotating the display while reading a FEN file.

This commit is contained in:
Peter Osterlund
2014-08-09 18:04:02 +00:00
parent 083ed45ce4
commit fd60255a55

View File

@@ -261,11 +261,13 @@ public class LoadFEN extends ListActivity {
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if (cb != null) {
Position pos = cb.pos;
showList();
cb.setPosition(pos);
okButton.setEnabled(selectedFi != null);
}
}
final static int PROGRESS_DIALOG = 0;