Merge "Fix crash when activity not attached after search index finishes." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d3e33ebcef
@@ -291,6 +291,9 @@ public class SearchFragment extends InstrumentedFragment implements SearchView.O
|
||||
*/
|
||||
@Override
|
||||
public void onIndexingFinished() {
|
||||
if (getActivity() == null) {
|
||||
return;
|
||||
}
|
||||
if (mShowingSavedQuery) {
|
||||
mSavedQueryController.loadSavedQueries();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user