diff --git a/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java b/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java index 9335005..bb920ff 100644 --- a/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java +++ b/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java @@ -74,9 +74,7 @@ Iris iris = (Iris) this.getActivity().getApplication(); rid = iris.getRid(); - //gameViewModel = new ViewModelProvider(this).get(GameViewModel.class); - //gameViewModel = new GameViewModel(rid); - //gameViewModel = new GameViewModel(rid); + gameViewModel.start(500, iris); gameViewModel = new ViewModelProvider(this).get(GameViewModel.class); gameViewModel.setRid(rid); System.out.println(gameViewModel.getImageLiveData()); @@ -197,7 +195,6 @@ private void setupWithViewModel() { System.out.println("kota: setupWithViewModel呼ばれた"); Iris iris = (Iris) this.getActivity().getApplication(); - gameViewModel.start(500, iris); myTeam = iris.getTeam(); rid = iris.getRid(); isMaster = iris.isMaster();