Commit 9596be3a authored by fallenstardust's avatar fallenstardust

可控是否显示搜索结果

parent c4171317
......@@ -58,6 +58,7 @@ import cn.garymb.ygomobile.bean.DeckType;
import cn.garymb.ygomobile.bean.events.CardInfoEvent;
import cn.garymb.ygomobile.bean.events.DeckFile;
import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.ui.activities.BaseActivity;
import cn.garymb.ygomobile.ui.activities.WebActivity;
import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerAdapter;
import cn.garymb.ygomobile.ui.adapters.SimpleSpinnerItem;
......@@ -285,7 +286,7 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
for (int i = 0; i < id.size(); i++)
Favorite.add(id.valueAt(i));
}
onSearchResult(Favorite);
onSearchResult(Favorite, true);
});
}
......@@ -357,10 +358,10 @@ class DeckManagerActivityImpl extends BaseCardsAcitivity implements RecyclerView
}
}
@Override
public void onSearchResult(List<Card> cardInfos) {
public void onSearchResult(List<Card> cardInfos, boolean isHide) {
super.onSearchResult(cardInfos);
showResult(false);
if (!isHide)
showResult(false);
}
@Override
......
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