version:beta
fix: update:接口优化
This commit is contained in:
@@ -226,38 +226,38 @@ public class ManagerService extends Service implements NetworkUtils.OnNetworkSta
|
||||
topView = LayoutInflater.from(getApplicationContext()).inflate(R.layout.activity_screen_lock, null);
|
||||
TextView textView = topView.findViewById(R.id.textView);
|
||||
textView.setText(name);
|
||||
EditText et_password = topView.findViewById(R.id.et_password);
|
||||
TextView tv_confirm = topView.findViewById(R.id.tv_confirm);
|
||||
tv_confirm.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
String password = (String) SPUtils.get(ManagerService.this, UrlAddress.LOCK_SCREEN_PWD, "");
|
||||
String pwd = et_password.getText().toString();
|
||||
if (!TextUtils.isEmpty(pwd) && !TextUtils.isEmpty(password) && password.equals(pwd)) {
|
||||
hideFloatingWindow();
|
||||
}else {
|
||||
ToastUtil.show("密码错误");
|
||||
}
|
||||
}
|
||||
});
|
||||
// EditText et_password = topView.findViewById(R.id.et_password);
|
||||
// TextView tv_confirm = topView.findViewById(R.id.tv_confirm);
|
||||
// tv_confirm.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View view) {
|
||||
// String password = (String) SPUtils.get(ManagerService.this, UrlAddress.LOCK_SCREEN_PWD, "");
|
||||
// String pwd = et_password.getText().toString();
|
||||
// if (!TextUtils.isEmpty(pwd) && !TextUtils.isEmpty(password) && password.equals(pwd)) {
|
||||
// hideFloatingWindow();
|
||||
// }else {
|
||||
// ToastUtil.show("密码错误");
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
} else {
|
||||
if ("added".equals(topView.getTag())) {
|
||||
TextView textView = topView.findViewById(R.id.textView);
|
||||
textView.setText(name);
|
||||
EditText et_password = topView.findViewById(R.id.et_password);
|
||||
TextView tv_confirm = topView.findViewById(R.id.tv_confirm);
|
||||
tv_confirm.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
String password = (String) SPUtils.get(ManagerService.this, UrlAddress.LOCK_SCREEN_PWD, "");
|
||||
String pwd = et_password.getText().toString();
|
||||
if (!TextUtils.isEmpty(pwd) && !TextUtils.isEmpty(password) && password.equals(pwd)) {
|
||||
hideFloatingWindow();
|
||||
}else {
|
||||
ToastUtil.show("密码错误");
|
||||
}
|
||||
}
|
||||
});
|
||||
// EditText et_password = topView.findViewById(R.id.et_password);
|
||||
// TextView tv_confirm = topView.findViewById(R.id.tv_confirm);
|
||||
// tv_confirm.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View view) {
|
||||
// String password = (String) SPUtils.get(ManagerService.this, UrlAddress.LOCK_SCREEN_PWD, "");
|
||||
// String pwd = et_password.getText().toString();
|
||||
// if (!TextUtils.isEmpty(pwd) && !TextUtils.isEmpty(password) && password.equals(pwd)) {
|
||||
// hideFloatingWindow();
|
||||
// }else {
|
||||
// ToastUtil.show("密码错误");
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user