Taha Malas
Sep 4, 2018 · 1 min read

Is there a function to restore that Disposable that we can call in onResume() for example, The scenario that I want to make is that the user gets his data from Room database after navigating to another activity I want to get rid of Observer I attached to that Observable.. But the data is changeable in the other activity.. So I want to re-listen to the data that it gets emitted from the database when the user returns to the first activity.. I know that I can use something like onActivityResult or even EventBus but the way I mentioned above seems more professional I believe.. Please feel free to correct me

    Taha Malas

    Written by