Commit 255ae572 authored by Alfansyah Fadlian's avatar Alfansyah Fadlian

tes register

parent 0be9110b
package com.yono.messeripos; package com.yono.messeripos;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
...@@ -186,5 +187,28 @@ public class RegisterState extends BottomSheetDialogFragment { ...@@ -186,5 +187,28 @@ public class RegisterState extends BottomSheetDialogFragment {
registerButton.setEnabled(false); registerButton.setEnabled(false);
} }
private void activateEmail(View customLayout) {
utils = new Utils(customLayout);
utils.dialog(context, false, customLayout, "Please Verifiy Email",
"Please verify your email before login",
"close", "verify")
.show();
utils.setListener(new Utils.DialogListener() {
@Override
public void onClickDisimiss(AlertDialog alertDialog) {
alertDialog.dismiss();
}
@Override
public void onClickLink(AlertDialog alertDialog) {
Intent pm = getActivity().getPackageManager().getLaunchIntentForPackage("com.google.android.gm");
if (pm != null) {
startActivity(pm);
getActivity().finish();
}
}
});
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment