|
@@ -133,6 +133,8 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
|
|
|
private var mAccountCreator: AccountCreator? = null
|
|
|
|
|
|
+ private lateinit var yfRk3288ApiManager: YF_RK3288_API_Manager
|
|
|
+
|
|
|
//网络异常计数
|
|
|
private var netErrCount : Int = 0
|
|
|
|
|
@@ -156,13 +158,16 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
}
|
|
|
|
|
|
override fun init() {
|
|
|
+ yfRk3288ApiManager = YF_RK3288_API_Manager(activity)
|
|
|
+
|
|
|
//rk3288使用序列号注册,其他使用mac地址注册
|
|
|
if ("rk3288".equals(Build.MODEL)) {
|
|
|
- val yfRk3288ApiManager = YF_RK3288_API_Manager(activity)
|
|
|
//获取设备序列号
|
|
|
Constant.DEVICE_SN = yfRk3288ApiManager.yfgetSerialNumber()
|
|
|
Constant.DEVICE_REGISTER_ID = Constant.DEVICE_SN
|
|
|
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarVisibility(true)
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarCanSwap(true)
|
|
|
//点亮屏幕并设置为永不休眠
|
|
|
yfRk3288ApiManager.yfSetLCDOn()
|
|
|
AppTool.Setting.setScreenOffTimeOut(activity, 2147483647)
|
|
@@ -559,7 +564,7 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
//防止重复点击
|
|
|
if (!TextUtils.isEmpty(Constant.SIP_ID)) {
|
|
|
//没有摄像头则只能拨打语音
|
|
|
- if (Constant.supportCamera) {
|
|
|
+ if (Constant.supportCamera && !SettingConfig.getSipEnabled(activity)) {
|
|
|
MenuDialog.build(this)
|
|
|
.config(voiceCall = {
|
|
|
startCall(Constant.VOICE_CALL)
|
|
@@ -652,6 +657,11 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
if (clickCount > 7) {
|
|
|
clickCount = 1
|
|
|
AppTool.Setting.systemSetting(activity)
|
|
|
+
|
|
|
+ if ("rk3288".equals(Build.MODEL)) {
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarVisibility(true)
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarCanSwap(true)
|
|
|
+ }
|
|
|
}
|
|
|
clickVersionTime = System.currentTimeMillis()
|
|
|
}
|
|
@@ -908,6 +918,11 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
|
|
|
presenter.loadPartSettings(Constant.PART_ID)
|
|
|
|
|
|
+ //正常进入界面后隐藏虚拟导航栏
|
|
|
+ if ("rk3288".equals(Build.MODEL)) {
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarVisibility(false)
|
|
|
+ yfRk3288ApiManager.yfsetNavigationBarCanSwap(false)
|
|
|
+ }
|
|
|
|
|
|
//检查版本
|
|
|
Constant.silentUpdate = true
|