|
@@ -16,9 +16,11 @@ import com.wdkl.callingmainnurse.R;
|
|
import com.wdkl.callingmainnurse.base.BaseActivity;
|
|
import com.wdkl.callingmainnurse.base.BaseActivity;
|
|
import com.wdkl.callingmainnurse.common.Constants;
|
|
import com.wdkl.callingmainnurse.common.Constants;
|
|
import com.wdkl.callingmainnurse.entity.MessageEvent;
|
|
import com.wdkl.callingmainnurse.entity.MessageEvent;
|
|
|
|
+import com.wdkl.callingmainnurse.service.led.LedItem;
|
|
import com.wdkl.callingmainnurse.service.led.LedManagerUtils;
|
|
import com.wdkl.callingmainnurse.service.led.LedManagerUtils;
|
|
import com.wdkl.callingmainnurse.util.LogUtil;
|
|
import com.wdkl.callingmainnurse.util.LogUtil;
|
|
import com.wdkl.callingmainnurse.util.SharedPreferencesUtil;
|
|
import com.wdkl.callingmainnurse.util.SharedPreferencesUtil;
|
|
|
|
+import com.wdkl.callingmainnurse.util.ToastUtil;
|
|
|
|
|
|
import org.adw.library.widgets.discreteseekbar.DiscreteSeekBar;
|
|
import org.adw.library.widgets.discreteseekbar.DiscreteSeekBar;
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
import org.greenrobot.eventbus.Subscribe;
|
|
@@ -44,6 +46,8 @@ public class LedSettingsActivity extends BaseActivity {
|
|
Button ledCheckFont;
|
|
Button ledCheckFont;
|
|
@Bind(R.id.btn_refresh_led_device)
|
|
@Bind(R.id.btn_refresh_led_device)
|
|
Button ledRefresh;
|
|
Button ledRefresh;
|
|
|
|
+ @Bind(R.id.btn_show_led_device)
|
|
|
|
+ Button ledShow;
|
|
|
|
|
|
@Bind(R.id.group_led_info_type)
|
|
@Bind(R.id.group_led_info_type)
|
|
RadioGroup groupLedType;
|
|
RadioGroup groupLedType;
|
|
@@ -187,6 +191,24 @@ public class LedSettingsActivity extends BaseActivity {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ ledShow.setOnClickListener(new View.OnClickListener() {
|
|
|
|
+ @Override
|
|
|
|
+ public void onClick(View view) {
|
|
|
|
+ List<LedItem> list = LedManagerUtils.getInstance().getLedList();
|
|
|
|
+ if (list != null && list.size() > 0) {
|
|
|
|
+ StringBuilder builder = new StringBuilder();
|
|
|
|
+ builder.append("查询到点阵屏: ");
|
|
|
|
+ for (int i = 0; i < list.size(); i++) {
|
|
|
|
+ builder.append(list.get(i).getIp());
|
|
|
|
+ builder.append(";");
|
|
|
|
+ }
|
|
|
|
+ ToastUtil.showToast(builder.toString());
|
|
|
|
+ } else {
|
|
|
|
+ ToastUtil.showToast("没有查询到点阵屏设备");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
if (Constants.LedVoiceOn == 1) {
|
|
if (Constants.LedVoiceOn == 1) {
|
|
rbVoiceOn.setChecked(true);
|
|
rbVoiceOn.setChecked(true);
|
|
} else {
|
|
} else {
|