CMResolver: Optimize restart if we know we don't have suggestions.
Change-Id: Ibf0683fcc51bc7d882f66f949031a16b6c9d580f
This commit is contained in:
parent
0d5b0b7d3c
commit
0769cdbd0d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user