summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-26 20:02:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-26 20:02:34 +0000
commitddcd1bab60773d4121e68083334d37792f4d4243 (patch)
tree93cce8e2208213688606caf1c06904f1cf042519
parent7bd1850ed7a435614ea48bbc7fc1e07af44effd7 (diff)
parent44cdef58c69e43c21014df7902156235bd0618f7 (diff)
downloadStk-ddcd1bab60773d4121e68083334d37792f4d4243.tar.gz
Merge "The main menu must not be set as a pending activity instance"android-o-preview-1android-n-mr2-preview-2o-preview
-rwxr-xr-xsrc/com/android/stk/StkMenuActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/stk/StkMenuActivity.java b/src/com/android/stk/StkMenuActivity.java
index 5c68e86..42cd60a 100755
--- a/src/com/android/stk/StkMenuActivity.java
+++ b/src/com/android/stk/StkMenuActivity.java
@@ -269,7 +269,9 @@ public class StkMenuActivity extends ListActivity implements View.OnCreateContex
}
} else {
if (appService != null) {
- appService.getStkContext(mSlotId).setPendingActivityInstance(this);
+ if (mState == STATE_SECONDARY) {
+ appService.getStkContext(mSlotId).setPendingActivityInstance(this);
+ }
} else {
CatLog.d(LOG_TAG, "onStop: null appService.");
}