Add check
This commit is contained in:
parent
f89b12bd87
commit
719760eed3
1 changed files with 4 additions and 2 deletions
|
@ -2114,8 +2114,10 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
HistoryEntry historyEntry = (HistoryEntry) searchListItem.getSearchResult().object;
|
HistoryEntry historyEntry = (HistoryEntry) searchListItem.getSearchResult().object;
|
||||||
searchHistoryHelper.remove(historyEntry);
|
searchHistoryHelper.remove(historyEntry);
|
||||||
}
|
}
|
||||||
((QuickSearchDialogFragment) getParentFragment()).reloadHistory();
|
if (getParentFragment() instanceof QuickSearchDialogFragment) {
|
||||||
((QuickSearchDialogFragment) getParentFragment()).enableSelectionMode(false, -1);
|
((QuickSearchDialogFragment) getParentFragment()).reloadHistory();
|
||||||
|
((QuickSearchDialogFragment) getParentFragment()).enableSelectionMode(false, -1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.setNegativeButton(R.string.shared_string_no, null);
|
.setNegativeButton(R.string.shared_string_no, null);
|
||||||
|
|
Loading…
Reference in a new issue