Commit e945e7ce by Wyh

04-11打印提示測試失敗

parent 414e7e7d
...@@ -117,13 +117,14 @@ public class PrintActivity extends BaseActivity<PrintPresenter> implements Print ...@@ -117,13 +117,14 @@ public class PrintActivity extends BaseActivity<PrintPresenter> implements Print
if (printerInIt != null) { if (printerInIt != null) {
printerInIt.setmContext(mContext).setPrintListener(this); printerInIt.setmContext(mContext).setPrintListener(this);
} }
if (type == PrinterInIt.PRINT_TEST) {
if (type == PrinterInIt.PRINT_TEST && deviceBean != null) { if (deviceBean != null) {
printerInIt.ipDevicePrint(deviceBean, printerInIt.getPrintBitmap(mContext).get("")); printerInIt.ipDevicePrint(deviceBean, printerInIt.getPrintBitmap(mContext).get(""));
} else { } else {
ToastUtils.show(mContext, "测试失败"); ToastUtils.show(mContext, "测试失败");
} }
} }
}
private void initDialog() { private void initDialog() {
try { try {
......
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