mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-18 11:42:17 +01:00
DroidFish: Fixed NPE when rotating the display while reading a FEN file.
This commit is contained in:
@@ -261,10 +261,12 @@ public class LoadFEN extends ListActivity {
|
||||
@Override
|
||||
public void onConfigurationChanged(Configuration newConfig) {
|
||||
super.onConfigurationChanged(newConfig);
|
||||
Position pos = cb.pos;
|
||||
showList();
|
||||
cb.setPosition(pos);
|
||||
okButton.setEnabled(selectedFi != null);
|
||||
if (cb != null) {
|
||||
Position pos = cb.pos;
|
||||
showList();
|
||||
cb.setPosition(pos);
|
||||
okButton.setEnabled(selectedFi != null);
|
||||
}
|
||||
}
|
||||
|
||||
final static int PROGRESS_DIALOG = 0;
|
||||
|
||||
Reference in New Issue
Block a user