diff --git a/build.gradle b/build.gradle index dfb88a97d7..8d5a6f88ab 100644 --- a/build.gradle +++ b/build.gradle @@ -181,8 +181,8 @@ dependencies { testImplementation 'org.robolectric:shadows-multidex:4.2' } -def canonicalVersionCode = 91 -def canonicalVersionName = "1.5.1.6" +def canonicalVersionCode = 93 +def canonicalVersionName = "1.5.2" def postFixSize = 10 def abiPostFix = ['armeabi-v7a' : 1, diff --git a/res/layout/prompt_passphrase_activity.xml b/res/layout/prompt_passphrase_activity.xml index 32e1069959..fd88069b91 100644 --- a/res/layout/prompt_passphrase_activity.xml +++ b/res/layout/prompt_passphrase_activity.xml @@ -90,53 +90,53 @@ android:paddingStart="10dp" android:paddingEnd="40dp"/> - + + + + + + + + - + + + + + + + + + + - + + + + + + + + + + - + - + + + + + + + + + + + + + + diff --git a/src/org/thoughtcrime/securesms/PassphrasePromptActivity.java b/src/org/thoughtcrime/securesms/PassphrasePromptActivity.java index 1e8f089d72..fedb1649c0 100644 --- a/src/org/thoughtcrime/securesms/PassphrasePromptActivity.java +++ b/src/org/thoughtcrime/securesms/PassphrasePromptActivity.java @@ -76,8 +76,8 @@ public class PassphrasePromptActivity extends PassphraseActivity { private Button lockScreenButton; private EditText passphraseText; - private ImageButton showButton; - private ImageButton hideButton; +// private ImageButton showButton; +// private ImageButton hideButton; private AnimatingToggle visibilityToggle; private FingerprintManagerCompat fingerprintManager; @@ -203,11 +203,11 @@ public class PassphrasePromptActivity extends PassphraseActivity { private void initializeResources() { - ImageButton okButton = findViewById(R.id.ok_button); +// ImageButton okButton = findViewById(R.id.ok_button); Toolbar toolbar = findViewById(R.id.toolbar); - showButton = findViewById(R.id.passphrase_visibility); - hideButton = findViewById(R.id.passphrase_visibility_off); +// showButton = findViewById(R.id.passphrase_visibility); +// hideButton = findViewById(R.id.passphrase_visibility_off); visibilityToggle = findViewById(R.id.button_toggle); passphraseText = findViewById(R.id.passphrase_edit); passphraseAuthContainer = findViewById(R.id.password_auth_container); @@ -217,17 +217,17 @@ public class PassphrasePromptActivity extends PassphraseActivity { fingerprintCancellationSignal = new CancellationSignal(); fingerprintListener = new FingerprintListener(); - setSupportActionBar(toolbar); - getSupportActionBar().setTitle(""); +// setSupportActionBar(toolbar); +// getSupportActionBar().setTitle(""); SpannableString hint = new SpannableString(" " + getString(R.string.PassphrasePromptActivity_enter_passphrase)); hint.setSpan(new RelativeSizeSpan(0.9f), 0, hint.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); hint.setSpan(new TypefaceSpan("sans-serif"), 0, hint.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); passphraseText.setHint(hint); - okButton.setOnClickListener(new OkButtonClickListener()); - showButton.setOnClickListener(new ShowButtonOnClickListener()); - hideButton.setOnClickListener(new HideButtonOnClickListener()); +// okButton.setOnClickListener(new OkButtonClickListener()); +// showButton.setOnClickListener(new ShowButtonOnClickListener()); +// hideButton.setOnClickListener(new HideButtonOnClickListener()); passphraseText.setOnEditorActionListener(new PassphraseActionListener()); passphraseText.setImeActionLabel(getString(R.string.prompt_passphrase_activity__unlock), EditorInfo.IME_ACTION_DONE); @@ -316,7 +316,7 @@ public class PassphrasePromptActivity extends PassphraseActivity { private class ShowButtonOnClickListener implements OnClickListener { @Override public void onClick(View v) { - visibilityToggle.display(hideButton); +// visibilityToggle.display(hideButton); setPassphraseVisibility(true); } } @@ -324,7 +324,7 @@ public class PassphrasePromptActivity extends PassphraseActivity { private class HideButtonOnClickListener implements OnClickListener { @Override public void onClick(View v) { - visibilityToggle.display(showButton); +// visibilityToggle.display(showButton); setPassphraseVisibility(false); } }