diff options
author | Adnan Begovic <adnan@cyngn.com> | 2015-09-14 23:48:31 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-09-15 09:52:10 -0700 |
commit | 0769cdbd0dd9c68de0efd64b341db6de138f4979 (patch) | |
tree | 01875ff5c716ab3c3badb4c042cdaa4e11690083 /packages | |
parent | 0d5b0b7d3c732a2e256d480124f7680d67c7647c (diff) | |
download | vendor_cmsdk-0769cdbd0dd9c68de0efd64b341db6de138f4979.zip vendor_cmsdk-0769cdbd0dd9c68de0efd64b341db6de138f4979.tar.gz vendor_cmsdk-0769cdbd0dd9c68de0efd64b341db6de138f4979.tar.bz2 |
CMResolver: Optimize restart if we know we don't have suggestions.
Change-Id: Ibf0683fcc51bc7d882f66f949031a16b6c9d580f
Diffstat (limited to 'packages')
-rw-r--r-- | packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java b/packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java index 821b7dd..a08240a 100644 --- a/packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java +++ b/packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java @@ -525,8 +525,11 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic mPackageMonitor.register(this, getMainLooper(), false); mRegistered = true; } - mAdapter.handlePackagesChanged(); - mSuggestAdapter.handlePackagesChanged(); + if (mHasSuggestions) { + mSuggestAdapter.handlePackagesChanged(); + } else { + mAdapter.handlePackagesChanged(); + } if (mProfileView != null) { bindProfileView(); } |