Browse Source

修改进入通话记录崩溃问题,app崩溃时将虚拟导航栏开启

weizhengliang 1 năm trước cách đây
mục cha
commit
559afc57ae

+ 2 - 2
android_bed/src/main/java/com/wdkl/app/ncs/callingbed/adapter/CallRecordsItemAdapter.kt

@@ -99,7 +99,7 @@ class CallRecordsItemAdapter(var data: ArrayList<InteractionVO>) : BaseDelegateA
                  if (itemData.fromDeviceId == Constant.DEVICE_ID){
                      binding.tabImagev.setImageResource(R.mipmap.huchu)
                      binding.callRecordsItemTitle.text = "呼出-"+itemData.toDeviceName
-                     if (itemData.actionAccept != null) {
+                     if (itemData.actionEnd != null) {
                          binding.callRecordsItemType.text = "已接通"
                          binding.callRecordsItemType.setTextColor(Color.parseColor("#2EA22A"));
                          binding.callRecordsItemCall.visibility = View.VISIBLE
@@ -121,7 +121,7 @@ class CallRecordsItemAdapter(var data: ArrayList<InteractionVO>) : BaseDelegateA
                      //呼入
                      binding.tabImagev.setImageResource(R.mipmap.huru)
                      binding.callRecordsItemTitle.text = "呼入-"+itemData.toDeviceName
-                     if (itemData.actionAccept != null) {
+                     if (itemData.actionEnd != null) {
                          binding.callRecordsItemType.text = "已接通"
                          binding.callRecordsItemType.setTextColor(Color.parseColor("#2EA22A"));
                          binding.callRecordsItemCall.visibility = View.VISIBLE

+ 1 - 1
android_bed/src/main/java/com/wdkl/app/ncs/callingbed/fragment/MainFragment.kt

@@ -79,7 +79,7 @@ class  MainFragment: BaseFragment<BedMainFragmentPresenter, MainViewLayoutBindin
     }
 
     override fun bindEvent() {
-        tv_bed_name_title.setOnClickListener {
+        ll_bed.setOnClickListener {
             val time = System.currentTimeMillis()
             if (time - clickTime < 1500) {
                 clickTimes++

+ 6 - 0
android_bed/src/main/java/com/wdkl/app/ncs/callingbed/helper/XCrashUtils.java

@@ -41,6 +41,9 @@ public class XCrashUtils {
         public void onCrash(String logPath, String emergency) {
             Log.d(TAG, "log path: " + (logPath != null ? logPath : "(null)") + ", emergency: " + (emergency != null ? emergency : "(null)"));
 
+            //打开虚拟导航栏
+            Utils.hideStatusBar(app, false);
+
             if (emergency != null) {
                 debug(logPath, emergency);
 
@@ -77,6 +80,9 @@ public class XCrashUtils {
         public void onCrash(String logPath, String emergency) {
             Log.d(TAG, "log path: " + (logPath != null ? logPath : "(null)") + ", emergency: " + (emergency != null ? emergency : "(null)"));
 
+            //打开虚拟导航栏
+            Utils.hideStatusBar(app, false);
+
             if (emergency != null) {
                 debug(logPath, emergency);