diff --git a/app/src/main/java/com/example/sprout/refactor/activity/RoomListActivity.java b/app/src/main/java/com/example/sprout/refactor/activity/RoomListActivity.java index a53406d..c2a54e8 100644 --- a/app/src/main/java/com/example/sprout/refactor/activity/RoomListActivity.java +++ b/app/src/main/java/com/example/sprout/refactor/activity/RoomListActivity.java @@ -9,7 +9,6 @@ import com.example.sprout.R; import com.example.sprout.databinding.RfActivityRoomListBinding; import com.example.sprout.refactor.adapter.RoomListAdapter; -import com.example.sprout.refactor.contract.ViewContract; import com.example.sprout.refactor.viewmodel.RoomListViewModel; import io.reactivex.android.schedulers.AndroidSchedulers; @@ -25,7 +24,7 @@ private RfActivityRoomListBinding binding = null; private RoomListViewModel roomListViewModel = null; - private CompositeDisposable subscriptions = new CompositeDisposable(); + private CompositeDisposable subscriptions = null; @Override protected void onCreate(Bundle savedInstanceState) { @@ -39,6 +38,7 @@ @Override protected void onResume() { super.onResume(); + subscriptions = new CompositeDisposable(); subscribe(); }