From 40651c8cf7d4296927f9c49aaa57bcfc7b5372ca Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 23 Jan 2013 14:35:39 +0900 Subject: [PATCH] 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 --- java/src/com/android/inputmethod/latin/LatinIME.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 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); }