Merge change 22322 into donut
* changes: Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user