| | |
| | | if (TextUtils.isEmpty(result)) { |
| | | Toast.makeText(this, R.string.capture_no_result, Toast.LENGTH_SHORT).show(); |
| | | } else { |
| | | Intent intent = new Intent(); |
| | | intent.putExtra("data", result); |
| | | setResult(RESULT_OK, intent); |
| | | finish(); |
| | | //EventBus事件分发 |
| | | HdlCommonLogic.getInstance().postEventBusSticky( |
| | | HDLUniMP.UNI_EVENT_REPLY_HOME_ADD, |
| | | HDLUniMP.UNI_EVENT_REPLY_HOME_ADD, |
| | | result); |
| | | if (result.startsWith("https://") || result.startsWith("http://")) { |
| | | Intent intent = new Intent(); |
| | | intent.putExtra("data", result); |
| | | setResult(RESULT_OK, intent); |
| | | finish(); |
| | | //EventBus事件分发 |
| | | HdlCommonLogic.getInstance().postEventBusSticky( |
| | | HDLUniMP.UNI_EVENT_REPLY_HOME_ADD, |
| | | HDLUniMP.UNI_EVENT_REPLY_HOME_ADD, |
| | | result); |
| | | } else { |
| | | Toast.makeText(this, R.string.not_delivery_qr_code, Toast.LENGTH_SHORT).show(); |
| | | } |
| | | |
| | | } |
| | | } |