From c5ebc059649a21d23347b8a530575627300aebef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Brey=20Vilas?= Date: Wed, 26 Jan 2022 16:11:14 +0100 Subject: [PATCH] PassCodeActivity: enable cancel button when re-created in confirmation step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevents a bug where the cancel button would stop working if the device was rotated Signed-off-by: Álvaro Brey Vilas --- .../java/com/owncloud/android/ui/activity/PassCodeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java b/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java index fcbcb32394..afe0d7ed7a 100644 --- a/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java @@ -141,8 +141,8 @@ public class PassCodeActivity extends AppCompatActivity implements Injectable { binding.header.setText(R.string.pass_code_configure_your_pass_code); binding.explanation.setVisibility(View.VISIBLE); - setCancelButtonEnabled(true); } + setCancelButtonEnabled(true); } else if (ACTION_CHECK_WITH_RESULT.equals(getIntent().getAction())) { // pass code preference has just been disabled in SettingsActivity;