|
@@ -19,6 +19,7 @@ import com.wdkl.callingbed2.base.BaseActivity;
|
|
|
import com.wdkl.callingbed2.common.Constants;
|
|
|
import com.wdkl.callingbed2.entity.InitDataEntity;
|
|
|
import com.wdkl.callingbed2.entity.MessageEvent;
|
|
|
+import com.wdkl.callingbed2.service.SoundPoolManager;
|
|
|
import com.wdkl.callingbed2.util.AutoRebootUtil;
|
|
|
import com.wdkl.callingbed2.util.CutSerialPortUtil;
|
|
|
import com.wdkl.callingbed2.util.DateUtil;
|
|
@@ -82,6 +83,8 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
ivLoading.setVisibility(View.VISIBLE);
|
|
|
animationDrawable = (AnimationDrawable) ivLoading.getBackground();
|
|
|
animationDrawable.start();
|
|
|
+
|
|
|
+ SoundPoolManager.getInstance().init();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -405,7 +408,7 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
|
|
|
// mScreenExtinguishUtil.touchScreen();//===============================息屏
|
|
|
|
|
|
- LogUtil.d("serialPortBedOnclick", "buffer[5]==" + buffer[5]);
|
|
|
+ LogUtil.d("serialPortBedOnclick", "buffer[5]==" + buffer[5] + ", buffer[8]==" + buffer[8]);
|
|
|
//呼叫护士键短按/长按松开
|
|
|
if (buffer[5] == 1 | buffer[5] == 2) {
|
|
|
if (null != Constants.MAC_ADDRESS) {
|
|
@@ -421,6 +424,10 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (buffer[8] == 2) {
|
|
|
+ SoundPoolManager.getInstance().playSound(3);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|