| | |
| | | import android.app.Dialog; |
| | | import android.content.Intent; |
| | | import android.view.Gravity; |
| | | import android.view.View; |
| | | import android.view.ViewGroup; |
| | | import android.view.WindowManager; |
| | | import android.widget.EditText; |
| | |
| | | setCanceledOnTouchOutside(false); |
| | | TextView textView = (TextView) this.findViewById(R.id.pw_ok); |
| | | final EditText editText = (EditText) this.findViewById(R.id.pw_et); |
| | | textView.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | try { |
| | | //密码为dyjsczgl@2024 |
| | | if (WSMD5.getMD5Str(editText.getText().toString()).equalsIgnoreCase("c42da502706e47c7962cb539cbc87321")) { |
| | | mContext.startActivity(intent); |
| | | PassWordDialog.this.dismiss(); |
| | | } else { |
| | | TipUtil.show(mContext, "密码错误"); |
| | | } |
| | | } catch (Exception e) { |
| | | CrashReport.postCatchedException(e); |
| | | e.printStackTrace(); |
| | | textView.setOnClickListener(v -> { |
| | | try { |
| | | //密码为dyjsczgl@2024 |
| | | if (WSMD5.getMD5Str(editText.getText().toString()).equalsIgnoreCase("c42da502706e47c7962cb539cbc87321")) { |
| | | mContext.startActivity(intent); |
| | | PassWordDialog.this.dismiss(); |
| | | } else { |
| | | TipUtil.show(mContext, "密码错误"); |
| | | } |
| | | } catch (Exception e) { |
| | | CrashReport.postCatchedException(e); |
| | | e.printStackTrace(); |
| | | } |
| | | }); |
| | | } |