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

Commit cc5dfa9e authored by Eric Fischer's avatar Eric Fischer
Browse files

Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.

Without this, the runtime would restart when you tried to add a word
from the search widget.

Bug 2069689
parent b7aec912
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7210,6 +7210,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                if (word != null) {
                    Intent i = new Intent("com.android.settings.USER_DICTIONARY_INSERT");
                    i.putExtra("word", word);
                    i.setFlags(i.getFlags() | Intent.FLAG_ACTIVITY_NEW_TASK);
                    getContext().startActivity(i);
                }