Skip to content

Instantly share code, notes, and snippets.

@mozerian
Created Nov 1, 2020
Embed
What would you like to do?
public void showIntroPaypal(){
if(!help.getIntroPaypal()) {
MaterialTapTargetPrompt.Builder mttp = Help.showPrompt(PaymentActivity.this, R.id.btn_Paypal, "Payment", "Tap here to open payment Activity");
mttp.setPromptStateChangeListener((prompt, state) -> {
if (state == MaterialTapTargetPrompt.STATE_DISMISSED
|| state == MaterialTapTargetPrompt.STATE_FOCAL_PRESSED) {
help.setIntroPaypal(true);
startActivity(new Intent(PaymentActivity.this, HomeActivity.class));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment