Commit 3864bdbf authored by fauzi's avatar fauzi

fix 🐛

parent 60cd013e
...@@ -197,7 +197,7 @@ public class LoginState extends BottomSheetDialogFragment { ...@@ -197,7 +197,7 @@ public class LoginState extends BottomSheetDialogFragment {
private void activateEmail(View customLayout) { private void activateEmail(View customLayout) {
utils = new Utils(customLayout); utils = new Utils(customLayout);
utils.dialog(context, false, customLayout, "Please Verifiy Email", utils.dialog(context, false, customLayout, "Please Verify Email",
"Please verify your email before login", "Please verify your email before login",
"close", "verify") "close", "verify")
.show(); .show();
......
...@@ -334,23 +334,14 @@ public class Utils { ...@@ -334,23 +334,14 @@ public class Utils {
CardView btnCard2 = view.findViewById(R.id.cvAlertOnClick2); CardView btnCard2 = view.findViewById(R.id.cvAlertOnClick2);
// set title and message // set title and message
if (titles != null){ title.setText(titles);
title.setText(titles); message.setText(messages);
}
if (message != null){ btnCard.setVisibility(View.VISIBLE);
message.setText(messages); button.setText(link);
}
if (button != null){ btnCard2.setVisibility(View.VISIBLE);
btnCard.setVisibility(View.VISIBLE); button2.setText(dismiss);
button.setText(link);
}
if (button2 != null) {
btnCard2.setVisibility(View.VISIBLE);
button2.setText(dismiss);
}
AlertDialog.Builder builder = new AlertDialog.Builder(context) AlertDialog.Builder builder = new AlertDialog.Builder(context)
.setCancelable(cancelable) .setCancelable(cancelable)
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/formUsernameLogin" android:layout_below="@id/formUsernameLogin"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
app:passwordToggleEnabled="true"
android:hint="@string/password"> android:hint="@string/password">
<com.google.android.material.textfield.TextInputEditText <com.google.android.material.textfield.TextInputEditText
...@@ -89,7 +90,7 @@ ...@@ -89,7 +90,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:imeOptions="actionDone|actionGo" android:imeOptions="actionDone|actionGo"
android:textColor="@color/colorPrimary" android:textColor="@color/colorPrimary"
android:inputType="textPassword" /> android:inputType="text|textPassword" />
</com.google.android.material.textfield.TextInputLayout> </com.google.android.material.textfield.TextInputLayout>
......
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