Skip to content

Commit 9a9cec9

Browse files
committed
renamed method
1 parent 8972262 commit 9a9cec9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

project/src/main/java/de/earthlingz/oerszebra/DroidZebra.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class DroidZebra extends AppCompatActivity implements MoveStringConsumer,
7575
private Menu menu;
7676

7777

78-
public void resetStateAndStatusView() {
78+
public void resetStatusView() {
7979
runOnUiThread(() -> {
8080
TextView viewById = findViewById(R.id.status_opening);
8181
if (viewById != null) {
@@ -271,7 +271,7 @@ public void onDebug(String message) {
271271
mBoardView.setOnMakeMoveListener(this);
272272
mBoardView.requestFocus();
273273

274-
resetStateAndStatusView();
274+
resetStatusView();
275275

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

328328
private void resetAndLoadOnGuiThread() {
329329
runOnUiThread(() -> {
330-
resetStateAndStatusView();
330+
getState().reset();
331+
resetStatusView();
331332
loadUISettings();
332333
});
333334
}

0 commit comments

Comments
 (0)