-
-
Save girubhai/d6ba8686e2dceca90a10f6f40852086f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UPIViewModel extends ViewModel { | |
public MutableLiveData<String> upiID = new MutableLiveData<>(""); | |
public SingleLiveEvent<Boolean> isSubmitAction = new SingleLiveEvent<>(); | |
public SingleLiveEvent<Boolean> canSaveData = new SingleLiveEvent<>(); | |
public void onSubmit() { | |
isSubmitAction.postValue(true); | |
} | |
public void onCancel() { | |
isSubmitAction.postValue(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment