bug修复

This commit is contained in:
kerwincui
2021-07-22 00:54:35 +08:00
parent e02cd31162
commit 734e1f27a5
3 changed files with 2 additions and 236134 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -203,7 +203,7 @@ public class SimpleTabFragment extends BaseFragment {
}
holder.click(R.id.device_item_light_button, v -> {
if(device.getIsOnline()==0) return;
if(device.getIsOnline()==null || device.getIsOnline()==0) return;
//震动
Vibrator vibrator = (Vibrator) activity.getSystemService(activity.VIBRATOR_SERVICE);
vibrator.vibrate(100);
@@ -213,7 +213,7 @@ public class SimpleTabFragment extends BaseFragment {
, lightIconView);
});
holder.click(R.id.device_item_switch_button, v -> {
if(device.getIsOnline()==0) return;
if(device.getIsOnline()==null || device.getIsOnline()==0) return;
//震动
Vibrator vibrator = (Vibrator) activity.getSystemService(activity.VIBRATOR_SERVICE);
vibrator.vibrate(100);