|
@@ -48,7 +48,7 @@ public class LoginActivity extends AppCompatActivity {
|
|
|
setContentView(R.layout.activity_login);
|
|
setContentView(R.layout.activity_login);
|
|
|
ButterKnife.bind(this);
|
|
ButterKnife.bind(this);
|
|
|
if (MyApplication.roomInfo != null) {
|
|
if (MyApplication.roomInfo != null) {
|
|
|
- // et.setText(MyApplication.roomInfo.getDeviceCode());
|
|
|
|
|
|
|
+ // et.setText(MyApplication.roomInfo.getDeviceCode());
|
|
|
}
|
|
}
|
|
|
unlockView.setUnlockListener(() -> {
|
|
unlockView.setUnlockListener(() -> {
|
|
|
unlockView.setVisibility(View.GONE);
|
|
unlockView.setVisibility(View.GONE);
|
|
@@ -94,7 +94,7 @@ public class LoginActivity extends AppCompatActivity {
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
RetrofitManager.getInstance().getRetrofit().create(ApiService.class)
|
|
RetrofitManager.getInstance().getRetrofit().create(ApiService.class)
|
|
|
- .bindDevice(et.getText().toString()).enqueue(new Callback<Room>() {
|
|
|
|
|
|
|
+ .bindDevice(new GetDeviceBody(et.getText().toString())).enqueue(new Callback<Room>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onResponse(@NonNull Call<Room> call, @NonNull Response<Room> response) {
|
|
public void onResponse(@NonNull Call<Room> call, @NonNull Response<Room> response) {
|
|
|
|
|
|