| | |
| | | |
| | | private SpannableString getErrPhoneText(){ |
| | | String phone = MApplication.getConfigBean().getLinkPhone(); |
| | | if(phone==null){ |
| | | String text = "如有问题请联系管理员"; |
| | | SpannableString styledText = new SpannableString(text); |
| | | styledText.setSpan(new TextAppearanceSpan(this, R.style.style_tip3), 0, text.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); |
| | | return styledText; |
| | | } |
| | | String text = "如有问题请联系管理员"+phone; |
| | | SpannableString styledText = new SpannableString(text); |
| | | styledText.setSpan(new TextAppearanceSpan(this, R.style.style_tip3), 0, text.length()-phone.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); |
| | |
| | | //司机ic卡成功 |
| | | if(flag==0) { |
| | | //取 |
| | | statusFsm(4); |
| | | if(MApplication.getConfigBean()!=null&&MApplication.getConfigBean().getAlcoholStatus()==1) { |
| | | //非酒精检测 |
| | | startActivity(KeyCabinetActivity.class); |
| | | finish(); |
| | | }else { |
| | | //酒精检测 |
| | | statusFsm(4); |
| | | } |
| | | }else { |
| | | //还 |
| | | startActivity(KeyCabinetActivity.class); |
| | |
| | | MApplication.getLoginBean().setMemberId(Integer.parseInt(user.getUserId())); |
| | | MApplication.getLoginBean().setAuthType(0); |
| | | //handler.sendEmptyMessageDelayed(8,0); |
| | | EventBus.getDefault().post(new FaceStatusChangeEvent(4)); |
| | | if(MApplication.getConfigBean()!=null&&MApplication.getConfigBean().getAlcoholStatus()==1) { |
| | | //非酒精检测 |
| | | startActivity(KeyCabinetActivity.class); |
| | | finish(); |
| | | }else { |
| | | //酒精检测 |
| | | EventBus.getDefault().post(new FaceStatusChangeEvent(4)); |
| | | } |
| | | }else if(status==7){ |
| | | //还-司机 |
| | | MApplication.getLoginBean().setMemberId(Integer.parseInt(user.getUserId())); |