Always allow showing account/identity passwords

Concerned people can use biometric authentication or a PIN
This commit is contained in:
M66B 2019-11-15 10:51:59 +01:00
parent b579e283e5
commit 1c97002cdc
3 changed files with 0 additions and 11 deletions

View File

@ -68,8 +68,6 @@ import java.util.Objects;
import javax.mail.Folder;
import static android.app.Activity.RESULT_OK;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_NONE;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_PASSWORD_TOGGLE;
public class FragmentAccount extends FragmentBase {
private ViewGroup view;
@ -423,7 +421,6 @@ public class FragmentAccount extends FragmentBase {
rgEncryption.setVisibility(View.GONE);
cbInsecure.setVisibility(View.GONE);
tilPassword.setEndIconMode(id < 0 ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
btnAdvanced.setVisibility(View.GONE);

View File

@ -69,8 +69,6 @@ import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import static android.app.Activity.RESULT_OK;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_NONE;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_PASSWORD_TOGGLE;
public class FragmentIdentity extends FragmentBase {
private ViewGroup view;
@ -217,7 +215,6 @@ public class FragmentIdentity extends FragmentBase {
tvInstructions.setVisibility(View.GONE);
grpAdvanced.setVisibility(View.GONE);
}
tilPassword.setEndIconMode(position == 0 ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
Integer tag = (Integer) adapterView.getTag();
if (Objects.equals(tag, position))
@ -424,7 +421,6 @@ public class FragmentIdentity extends FragmentBase {
btnAutoConfig.setEnabled(false);
pbAutoConfig.setVisibility(View.GONE);
cbInsecure.setVisibility(View.GONE);
tilPassword.setEndIconMode(id < 0 ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
btnAdvanced.setVisibility(View.GONE);

View File

@ -52,8 +52,6 @@ import com.google.android.material.textfield.TextInputLayout;
import java.util.Date;
import static android.app.Activity.RESULT_OK;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_NONE;
import static com.google.android.material.textfield.TextInputLayout.END_ICON_PASSWORD_TOGGLE;
public class FragmentPop extends FragmentBase {
private ViewGroup view;
@ -165,8 +163,6 @@ public class FragmentPop extends FragmentBase {
// Initialize
Helper.setViewsEnabled(view, false);
tilPassword.setEndIconMode(id < 0 ? END_ICON_PASSWORD_TOGGLE : END_ICON_NONE);
pbSave.setVisibility(View.GONE);
grpError.setVisibility(View.GONE);