lizhanwei
2020-04-16 9d01f2ae37f5173f3416924959563ff9683b1030
获得二维码签到url后,传给展示二维码的 dialog,用以生成二维码
1个文件已删除
3个文件已修改
23 ■■■■■ 已修改文件
.gitignore 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.idea/misc.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/safeluck/drive/evaluation/customview/QRCodeDialog.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -16,3 +16,4 @@
signal_config_file.json.orig
lib/.cxx/cmake
ndk_locator_record.json
misc.xml
.idea/misc.xml
File was deleted
app/src/main/java/safeluck/drive/evaluation/customview/QRCodeDialog.java
@@ -5,6 +5,7 @@
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -36,6 +37,7 @@
 */
public class QRCodeDialog extends DialogFragment {
    private static final String TAG = "QRCodeDialog";
    private String message="正在加载...";
    private boolean canCancel= true;
    private ImageView iv_qrCode;
@@ -56,7 +58,8 @@
        initView(view);
        setCancelable(canCancel);
        Bundle bundle =getArguments();
        message = bundle.getString("title");
        message = bundle.getString("tittle");
        Log.i(TAG,"meesage="+message);
        Message message = Message.obtain();
        message.what = 1;
        handler.sendMessageDelayed(message,15*1000);
@@ -75,6 +78,7 @@
        QRCodeDialog fragment = new QRCodeDialog();
        Bundle bundle = new Bundle();
        bundle.putString("tittle", message);
        Log.i(TAG,"messae="+message);
        fragment.setArguments(bundle);
        return fragment;
    }
app/src/main/java/safeluck/drive/evaluation/fragment/NetWorkTrainFragment.java
@@ -648,15 +648,10 @@
                break;
            case R.id.btn_return:
//                _mActivity.onBackPressed();
                QRCodeDialog qrCodeDialog = QRCodeDialog.newInstance("f");
                qrCodeDialog.setStyle(DialogFragment.STYLE_NORMAL,R.style.Dialog_FullScreen);
                qrCodeDialog.show(getFragmentManager(),"qrcode");
                _mActivity.onBackPressed();
                break;
            case R.id.iv_head:
                MyLog.i(PlatFormConstant.HTTPTAG,"签到");
//                AYSdk.getInstance().sendCmd(Constant.READ_PHYSICAL_ID,"");
                //TODO 获得物理卡号 发送JKMessage0201给平台,获取姓名、身份证、head_url
                loadProgressDialog = LoadProgressDialog.newInstance("请稍后...");
                loadProgressDialog.setStyle(DialogFragment.STYLE_NORMAL,R.style.Dialog_FullScreen);
                loadProgressDialog.showNow(getFragmentManager(),"loadingdiaolog");