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
|
@Override
|
||||||
public void onConfigurationChanged(Configuration newConfig) {
|
public void onConfigurationChanged(Configuration newConfig) {
|
||||||
super.onConfigurationChanged(newConfig);
|
super.onConfigurationChanged(newConfig);
|
||||||
Position pos = cb.pos;
|
if (cb != null) {
|
||||||
showList();
|
Position pos = cb.pos;
|
||||||
cb.setPosition(pos);
|
showList();
|
||||||
okButton.setEnabled(selectedFi != null);
|
cb.setPosition(pos);
|
||||||
|
okButton.setEnabled(selectedFi != null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final static int PROGRESS_DIALOG = 0;
|
final static int PROGRESS_DIALOG = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user