CMResolver: Optimize restart if we know we don't have suggestions.

Change-Id: Ibf0683fcc51bc7d882f66f949031a16b6c9d580f
This commit is contained in:
Adnan Begovic 2015-09-14 23:48:31 -07:00 committed by Gerrit Code Review
parent 0d5b0b7d3c
commit 0769cdbd0d

View File

@ -525,8 +525,11 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic
mPackageMonitor.register(this, getMainLooper(), false);
mRegistered = true;
}
mAdapter.handlePackagesChanged();
if (mHasSuggestions) {
mSuggestAdapter.handlePackagesChanged();
} else {
mAdapter.handlePackagesChanged();
}
if (mProfileView != null) {
bindProfileView();
}