diff --git a/app/src/main/java/org/ntlab/developrx/JavaMainActivity.java b/app/src/main/java/org/ntlab/developrx/JavaMainActivity.java index a184b71..e775591 100644 --- a/app/src/main/java/org/ntlab/developrx/JavaMainActivity.java +++ b/app/src/main/java/org/ntlab/developrx/JavaMainActivity.java @@ -14,12 +14,10 @@ super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_java); - findViewById(R.id.flowable_btn).setOnClickListener(view -> { - rxProcess.flowableReactiveStreams(); - }); + findViewById(R.id.flowable_btn).setOnClickListener(view -> rxProcess.flowableReactiveStreams()); - findViewById(R.id.observable_btn).setOnClickListener(view -> { - rxProcess.observable(); - }); + findViewById(R.id.observable_btn).setOnClickListener(view -> rxProcess.observable()); + + findViewById(R.id.just_btn).setOnClickListener(view -> rxProcess.just()); } }