mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-19 20:22:18 +01:00
DroidFish: Fixed problem causing progress dialog to stay visible after
rotating screen.
This commit is contained in:
@@ -237,7 +237,8 @@ public class EditPGN extends ListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final void showList() {
|
private final void showList() {
|
||||||
progress.dismiss();
|
progress = null;
|
||||||
|
removeDialog(PROGRESS_DIALOG);
|
||||||
setContentView(R.layout.select_game);
|
setContentView(R.layout.select_game);
|
||||||
Util.overrideFonts(findViewById(android.R.id.content));
|
Util.overrideFonts(findViewById(android.R.id.content));
|
||||||
aa = new ArrayAdapter<GameInfo>(this, R.layout.select_game_list_item, gamesInFile) {
|
aa = new ArrayAdapter<GameInfo>(this, R.layout.select_game_list_item, gamesInFile) {
|
||||||
@@ -282,7 +283,6 @@ public class EditPGN extends ListActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// lv.setTextFilterEnabled(true);
|
|
||||||
filterText = (EditText)findViewById(R.id.select_game_filter);
|
filterText = (EditText)findViewById(R.id.select_game_filter);
|
||||||
filterText.addTextChangedListener(new TextWatcher() {
|
filterText.addTextChangedListener(new TextWatcher() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -181,7 +181,8 @@ public class LoadFEN extends ListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final void showList() {
|
private final void showList() {
|
||||||
progress.dismiss();
|
progress = null;
|
||||||
|
removeDialog(PROGRESS_DIALOG);
|
||||||
setContentView(R.layout.load_fen);
|
setContentView(R.layout.load_fen);
|
||||||
|
|
||||||
cb = (ChessBoardPlay)findViewById(R.id.loadfen_chessboard);
|
cb = (ChessBoardPlay)findViewById(R.id.loadfen_chessboard);
|
||||||
|
|||||||
@@ -214,7 +214,8 @@ public class LoadScid extends ListActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final void showList() {
|
private final void showList() {
|
||||||
progress.dismiss();
|
progress = null;
|
||||||
|
removeDialog(PROGRESS_DIALOG);
|
||||||
final ArrayAdapter<GameInfo> aa =
|
final ArrayAdapter<GameInfo> aa =
|
||||||
new ArrayAdapter<GameInfo>(this, R.layout.select_game_list_item, gamesInFile) {
|
new ArrayAdapter<GameInfo>(this, R.layout.select_game_list_item, gamesInFile) {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user