Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
c8a26f52fa
1 changed files with 12 additions and 12 deletions
|
@ -1308,8 +1308,8 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reloadHistoryInternal() {
|
private void reloadHistoryInternal() {
|
||||||
|
if (historySearchFragment != null) {
|
||||||
try {
|
try {
|
||||||
LOG.info("+++ start loading history");
|
|
||||||
SearchResultCollection res = searchUICore.shallowSearch(SearchHistoryAPI.class, "", null);
|
SearchResultCollection res = searchUICore.shallowSearch(SearchHistoryAPI.class, "", null);
|
||||||
List<QuickSearchListItem> rows = new ArrayList<>();
|
List<QuickSearchListItem> rows = new ArrayList<>();
|
||||||
if (res != null) {
|
if (res != null) {
|
||||||
|
@ -1318,12 +1318,12 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
historySearchFragment.updateListAdapter(rows, false);
|
historySearchFragment.updateListAdapter(rows, false);
|
||||||
LOG.info("--- history loaded: count=" + rows.size());
|
} catch (Exception e) {
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
app.showToastMessage(e.getMessage());
|
app.showToastMessage(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void restoreSearch() {
|
private void restoreSearch() {
|
||||||
if (addressSearch) {
|
if (addressSearch) {
|
||||||
|
|
Loading…
Reference in a new issue