UI调整
This commit is contained in:
parent
0c90c61598
commit
6378f323a3
|
|
@ -194,21 +194,21 @@ public class CheckWifiUtil {
|
||||||
|
|
||||||
if ("camera".equals(devicetype)) {
|
if ("camera".equals(devicetype)) {
|
||||||
if (!wifissid.startsWith("GW_AP_")) {
|
if (!wifissid.startsWith("GW_AP_")) {
|
||||||
ToastUtil.show(activity.getApplicationContext(), "请先连接摄像头设备热点");
|
ToastUtil.show(activity.getApplicationContext(), "请先连接摄像头ifish-xxxx的网络");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//todo 摄像头
|
//todo 摄像头
|
||||||
intent.setClass(activity, HotSpotConnentDeviceCameraActivity.class);
|
intent.setClass(activity, HotSpotConnentDeviceCameraActivity.class);
|
||||||
} else if ("pet".equals(devicetype)) {
|
} else if ("pet".equals(devicetype)) {
|
||||||
if (!wifissid.startsWith("ifish-")) {
|
if (!wifissid.startsWith("ifish-")) {
|
||||||
ToastUtil.show(activity.getApplicationContext(), "请先连接宠物笼设备热点");
|
ToastUtil.show(activity.getApplicationContext(), "请先连接宠物笼ifish-xxxx的网络");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//todo 宠物
|
//todo 宠物
|
||||||
intent.setClass(activity, HotSpotConnentPetDeviceActivity.class);
|
intent.setClass(activity, HotSpotConnentPetDeviceActivity.class);
|
||||||
} else {
|
} else {
|
||||||
if (!wifissid.startsWith("ifish-")) {
|
if (!wifissid.startsWith("ifish-")) {
|
||||||
ToastUtil.show(activity.getApplicationContext(), "请先连接设备热点");
|
ToastUtil.show(activity.getApplicationContext(), "请先连接ifish-xxxx的网络");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//todo 设备
|
//todo 设备
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,6 @@ public class NewBindDeviceActivity extends AppCompatActivity {
|
||||||
*/
|
*/
|
||||||
private void connectAP() {
|
private void connectAP() {
|
||||||
isJump = true;
|
isJump = true;
|
||||||
ToastUtil.show(NewBindDeviceActivity.this, "开始AP连接...");
|
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i = new Intent(Settings.ACTION_WIFI_SETTINGS);
|
i = new Intent(Settings.ACTION_WIFI_SETTINGS);
|
||||||
startActivity(i);
|
startActivity(i);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue