Merge "Deleting obsolete code and changing code structure since we stop prompting user to add account when no account available Bug:25161189"
diff --git a/src/com/android/contacts/common/editor/SelectAccountDialogFragment.java b/src/com/android/contacts/common/editor/SelectAccountDialogFragment.java
index d4a23f0..8f48395 100644
--- a/src/com/android/contacts/common/editor/SelectAccountDialogFragment.java
+++ b/src/com/android/contacts/common/editor/SelectAccountDialogFragment.java
@@ -105,6 +105,12 @@
         }
     }
 
+    @Override
+    public void onSaveInstanceState(Bundle b) {
+        setTargetFragment(null, -1);
+        super.onSaveInstanceState(b);
+    }
+
     /**
      * Calls {@link Listener#onAccountChosen} of {@code targetFragment}.
      */