Merge pull request 'classIdの表示する時、0になる問題を解決' (#51) from murakumo_classIdが0になる問題 into master
Reviewed-on: #51
This commit is contained in:
commit
2f2c99cf6f
|
@ -20,7 +20,6 @@ import com.google.gson.Gson;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.CompletableFuture;
|
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
|
@ -190,9 +189,13 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
|
||||||
executor.execute(() -> {
|
executor.execute(() -> {
|
||||||
// 現在のクラスIDを取得
|
// 現在のクラスIDを取得
|
||||||
int currentClassId = getCurrentClassIdFromRoom();
|
int currentClassId = getCurrentClassIdFromRoom();
|
||||||
|
if (currentClassId == 0) {
|
||||||
|
currentClassId = classId;
|
||||||
|
}
|
||||||
|
final int showDialogClassId = currentClassId;
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
// 現在のクラスIDを表示するダイアログ
|
// 現在のクラスIDを表示するダイアログ
|
||||||
showClassIdDialog("現在のID", currentClassId);
|
showClassIdDialog("現在のID", showDialogClassId);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
executor.shutdown();
|
executor.shutdown();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user