Commit 8c1fa464 authored by zhang_z's avatar zhang_z

提交修改;

parent ef489e72
...@@ -149,6 +149,7 @@ public class SsskuActivity extends BaseActivity<SsskuPresenter, ActivitySsskuBin ...@@ -149,6 +149,7 @@ public class SsskuActivity extends BaseActivity<SsskuPresenter, ActivitySsskuBin
case C.TITLE_MODE.SKU_MANAGER: case C.TITLE_MODE.SKU_MANAGER:
mScanFragment.setOnScanCompletedListener(barcode -> { mScanFragment.setOnScanCompletedListener(barcode -> {
this.pop(); this.pop();
showSearchFragment(C.TITLE_MODE.SKU);
mPresenter.searchSku(barcode); mPresenter.searchSku(barcode);
}); });
mScanFragment.setOnBackPressedListener(this::backToManagerFragment); mScanFragment.setOnBackPressedListener(this::backToManagerFragment);
......
...@@ -64,7 +64,8 @@ public class AddFragment extends BaseFragment<SsskuPresenter, FragmentSsskuAddBi ...@@ -64,7 +64,8 @@ public class AddFragment extends BaseFragment<SsskuPresenter, FragmentSsskuAddBi
} }
public void loadBarcode(String barcode) { public void loadBarcode(String barcode) {
if (mViewBinding != null) mViewBinding.etBarcode.setText(barcode); if (mViewBinding == null) return;
mViewBinding.etBarcode.setText(barcode);
} }
@Override @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