From ff6d53bc446e11a008eaae6bb157f5a5859379b0 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Tue, 22 Nov 2022 11:43:15 +0800 Subject: [PATCH] [2.13.0] code style --- .../com/mogo/eagle/core/function/main/MainLauncherActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java index 901047a8d8..403a712655 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/main/MainLauncherActivity.java @@ -130,6 +130,7 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis protected void onPause() { super.onPause(); mIsHomeKeyDown = false; + unregisterReceiver(this.mBluetoothReceiver); } @Override @@ -198,7 +199,6 @@ public class MainLauncherActivity extends MainActivity implements IMogoIntentLis // 移除换肤监听 CallerSkinModeListenerManager.INSTANCE.removeListener(TAG); EventBus.getDefault().unregister(this); - unregisterReceiver(this.mBluetoothReceiver); } private void stopCountDown() {