diff options
author | 2013-01-23 14:35:39 +0900 | |
---|---|---|
committer | 2013-01-23 15:08:35 +0900 | |
commit | 40651c8cf7d4296927f9c49aaa57bcfc7b5372ca (patch) | |
tree | df6ae9487278da7a2b912000e1131cadf1fc833f /java/src | |
parent | ad4cacafc6f6b18547b3ea73985930c7ca62d273 (diff) | |
download | latinime-40651c8cf7d4296927f9c49aaa57bcfc7b5372ca.tar.gz latinime-40651c8cf7d4296927f9c49aaa57bcfc7b5372ca.tar.xz latinime-40651c8cf7d4296927f9c49aaa57bcfc7b5372ca.zip |
Fix activity flags to launch settings activity
This change adds the following flags to the intent to lauch settings activity.
- Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
- Intent.FLAG_ACTIVITY_CLEAR_TOP
Bug: 8055342
Change-Id: I85284409bbba3fd284442e5ac4c7a55e58ad15ec
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index a48778ab3..fc9953ac0 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2490,7 +2490,9 @@ public final class LatinIME extends InputMethodService implements KeyboardAction private void launchSubActivity(final Class<? extends Activity> activityClass) { Intent intent = new Intent(); intent.setClass(LatinIME.this, activityClass); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED + | Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(intent); } |