diff options
| author | Kenny Guy <kennyguy@google.com> | 2014-12-12 18:46:20 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-12-12 18:46:23 +0000 |
| commit | 4357d4eabc375c392190cf2d1dfc3aeba9718ceb (patch) | |
| tree | 0e5f0026a7c20bb39174e1995665da48ff26a33d /core/java | |
| parent | 2636ccc1857264a76db8ddaee600f06fadad3c36 (diff) | |
| parent | b8a2df10c938f1120f5c4a3c0d06aae4ed3f2281 (diff) | |
Merge "Don't show last used and profile button at same time." into lmp-mr1-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/app/ResolverActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java index c9a271cde37a..661acbeda4bf 100644 --- a/core/java/com/android/internal/app/ResolverActivity.java +++ b/core/java/com/android/internal/app/ResolverActivity.java @@ -956,6 +956,13 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic // Process last group processGroup(currentResolveList, start, (N-1), r0, r0Label); } + + // Layout doesn't handle both profile button and last chosen + // so disable last chosen if profile button is present. + if (mOtherProfile != null && mLastChosenPosition >= 0) { + mLastChosenPosition = -1; + mFilterLastUsed = false; + } } private void processGroup(List<ResolveInfo> rList, int start, int end, ResolveInfo ro, |
