Fix the PIN2 input screen remains while deleting FDN
In the FDN list screen, PIN2 input screen remains even if user completes
PIN2 input after user deletes any number and goes back to PIN2 input
screen and changes device orientation.
PIN2 input screen should be launched only the first time.
Bug: 149452932
Test: manual
Change-Id: I9c618d68d31323527bf3a714fec06ec47d0e716c
diff --git a/src/com/android/phone/settings/fdn/DeleteFdnContactScreen.java b/src/com/android/phone/settings/fdn/DeleteFdnContactScreen.java
index 92baa97..8b17cfb 100644
--- a/src/com/android/phone/settings/fdn/DeleteFdnContactScreen.java
+++ b/src/com/android/phone/settings/fdn/DeleteFdnContactScreen.java
@@ -64,7 +64,8 @@
resolveIntent();
- authenticatePin2();
+ // Starts PIN2 authentication only for the first time.
+ if (icicle == null) authenticatePin2();
getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.delete_fdn_contact_screen);