summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Chen <christinech@google.com>2013-09-10 12:21:52 -0700
committerChristine Chen <christinech@google.com>2013-09-10 12:21:52 -0700
commit2be8b9714d30f4062875bd040e3f3153e30f7627 (patch)
treebb116dbff6a82d5ece0018893bffb4565f481edf
parentd0c4105754656373ad18fbbca702b3ecfc55dc5c (diff)
Fixes repeated adds of "Write your own.." text.
Bug: 10649206 Change-Id: I232756a6c60e38240eba9f4f9f832692b0e6b735
-rw-r--r--InCallUI/src/com/android/incallui/AnswerFragment.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/AnswerFragment.java b/InCallUI/src/com/android/incallui/AnswerFragment.java
index 2429dac96..324d5228f 100644
--- a/InCallUI/src/com/android/incallui/AnswerFragment.java
+++ b/InCallUI/src/com/android/incallui/AnswerFragment.java
@@ -140,9 +140,12 @@ public class AnswerFragment extends BaseFragment<AnswerPresenter, AnswerPresente
@Override
public void configureMessageDialogue(ArrayList<String> textResponses) {
- textResponses.add(getResources().getString(R.string.respond_via_sms_custom_message));
+ final ArrayList<String> textResponsesForDisplay = new ArrayList<String>(textResponses);
+
+ textResponsesForDisplay.add(getResources().getString(
+ R.string.respond_via_sms_custom_message));
mTextResponsesAdapter = new ArrayAdapter<String>(getActivity(),
- android.R.layout.simple_list_item_1, android.R.id.text1, textResponses);
+ android.R.layout.simple_list_item_1, android.R.id.text1, textResponsesForDisplay);
}
@Override