Commit 361399f1 by jason

bug fix

parent 8a4d2d49
......@@ -172,12 +172,16 @@ public class NewFoodIngredientsFragment extends BaseSupplyChainFragment<NewFoodI
public void initAdapter() {
infoMultiAdapter = new InfoMultiAdapter(mContext, mPresenter.getFragmentInfo(mContext, (v, hasFocus) -> {
// LogUtil.e("zjs"," initAdapter currentThread "+v.isPressed()+" hasFocus__"+v.hasFocus()+" hasFocus=="+hasFocus);
if (hasFocus && purchaseFoodBean != null && purchaseFoodBean.getUnitPrice()>0) {
if (hasFocus && purchaseFoodBean != null ) {
Double price= purchaseFoodBean.getUnitPrice();
if (price != null && price>0) {
InfoMultiBean infoMultiBean = infoMultiAdapter.getItem(12);
infoMultiBean.setShowValue("");
purchaseFoodBean.setUnitPrice(0d);
rvNewFoodIngredients.postDelayed(() -> infoMultiAdapter.notifyItemChanged(12),10);
}
}
}));
rvNewFoodIngredients.addItemDecoration(new DividerItemDecoration(mContext, VERTICAL_LIST));
infoMultiAdapter.setOnItemClickListener((adapter, view, position) -> {
......
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