Commit 123aaf1e authored by fallenstardust's avatar fallenstardust

查询时不再显示wait对话框

parent e1a630f1
...@@ -131,7 +131,7 @@ public class CardLoader implements ICardSearcher { ...@@ -131,7 +131,7 @@ public class CardLoader implements ICardSearcher {
if (mCallBack != null) { if (mCallBack != null) {
mCallBack.onSearchStart(); mCallBack.onSearchStart();
} }
Dialog wait = DialogPlus.show(context, null, context.getString(R.string.searching)); //Dialog wait = DialogPlus.show(context, null, context.getString(R.string.searching));
VUiKit.defer().when(() -> { VUiKit.defer().when(() -> {
SparseArray<Card> cards = mCardManager.getAllCards(); SparseArray<Card> cards = mCardManager.getAllCards();
List<Card> list = new ArrayList<>(); List<Card> list = new ArrayList<>();
...@@ -159,12 +159,12 @@ public class CardLoader implements ICardSearcher { ...@@ -159,12 +159,12 @@ public class CardLoader implements ICardSearcher {
mCallBack.onSearchResult(noting, false); mCallBack.onSearchResult(noting, false);
} }
LogUtil.e("kk", "search", e); LogUtil.e("kk", "search", e);
wait.dismiss(); //wait.dismiss();
}).done((tmp) -> { }).done((tmp) -> {
if (mCallBack != null) { if (mCallBack != null) {
mCallBack.onSearchResult(tmp, false); mCallBack.onSearchResult(tmp, false);
} }
wait.dismiss(); //wait.dismiss();
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment