Skip to content

Instantly share code, notes, and snippets.

@varundwarkani
Created June 13, 2021 08:26
Show Gist options
  • Save varundwarkani/3032ca27487b9f7d76c5bbc99cfd3b04 to your computer and use it in GitHub Desktop.
Save varundwarkani/3032ca27487b9f7d76c5bbc99cfd3b04 to your computer and use it in GitHub Desktop.
public class QuizOverViewModel extends ViewModel {
public SingleLiveEvent<Boolean> isCancelled = new SingleLiveEvent<>();
public void closeDialog() {
isCancelled.postValue(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment