aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/CMResolver/src/org/cyanogenmod/resolver/ResolverActivity.java7
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();
}