Commit 361399f1 by jason

bug fix

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