Skip to content

Commit

Permalink
renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
oers committed Aug 6, 2019
1 parent 8972262 commit 9a9cec9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions project/src/main/java/de/earthlingz/oerszebra/DroidZebra.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class DroidZebra extends AppCompatActivity implements MoveStringConsumer,
private Menu menu;


public void resetStateAndStatusView() {
public void resetStatusView() {
runOnUiThread(() -> {
TextView viewById = findViewById(R.id.status_opening);
if (viewById != null) {
Expand Down Expand Up @@ -271,7 +271,7 @@ public void onDebug(String message) {
mBoardView.setOnMakeMoveListener(this);
mBoardView.requestFocus();

resetStateAndStatusView();
resetStatusView();

if (Intent.ACTION_SEND.equals(action) && type != null) {
if ("text/plain".equals(type) || "message/rfc822".equals(type)) {
Expand Down Expand Up @@ -327,7 +327,8 @@ public void onGameStateReady(GameState gameState1) {

private void resetAndLoadOnGuiThread() {
runOnUiThread(() -> {
resetStateAndStatusView();
getState().reset();
resetStatusView();
loadUISettings();
});
}
Expand Down

0 comments on commit 9a9cec9

Please sign in to comment.