Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b69c8cab authored by Gilles Debunne's avatar Gilles Debunne Committed by Android Git Automerger
Browse files

am 0235016a: am 2df13452: Merge "Insert into user dict with the correct locale" into ics-mr1

* commit '0235016a':
  Insert into user dict with the correct locale
parents 24365799 0235016a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9931,6 +9931,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            if (suggestionInfo.suggestionIndex == ADD_TO_DICTIONARY) {
                Intent intent = new Intent(Settings.ACTION_USER_DICTIONARY_INSERT);
                intent.putExtra("word", originalText);
                intent.putExtra("locale", getTextServicesLocale().toString());
                intent.setFlags(intent.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK);
                getContext().startActivity(intent);
                // There is no way to know if the word was indeed added. Re-check.