Skip to content

Commit b69c8ca

Browse files
Gilles DebunneAndroid Git Automerger
authored andcommitted
am 0235016: am 2df1345: Merge "Insert into user dict with the correct locale" into ics-mr1
* commit '0235016acb241556f24689e3d818db6973b5ad4f': Insert into user dict with the correct locale
2 parents 2436579 + 0235016 commit b69c8ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/widget/TextView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9931,6 +9931,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
99319931
if (suggestionInfo.suggestionIndex == ADD_TO_DICTIONARY) {
99329932
Intent intent = new Intent(Settings.ACTION_USER_DICTIONARY_INSERT);
99339933
intent.putExtra("word", originalText);
9934+
intent.putExtra("locale", getTextServicesLocale().toString());
99349935
intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK);
99359936
getContext().startActivity(intent);
99369937
// There is no way to know if the word was indeed added. Re-check.

0 commit comments

Comments
 (0)