From 54cb06b771447df9bca5f3eae88a9caaf8ec51ff Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 22 七月 2024 17:24:10 +0800
Subject: [PATCH] 2024年07月22日17:24:08

---
 app/src/main/java/com/hdl/photovoltaic/base/BaseActivity.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/base/BaseActivity.java b/app/src/main/java/com/hdl/photovoltaic/base/BaseActivity.java
index f970c6e..48d8233 100644
--- a/app/src/main/java/com/hdl/photovoltaic/base/BaseActivity.java
+++ b/app/src/main/java/com/hdl/photovoltaic/base/BaseActivity.java
@@ -52,9 +52,10 @@
 
     @Override
     protected void attachBaseContext(Context newBase) {
-        super.attachBaseContext(newBase);
         //app涓嫳鏂囪缃�
         LocalManageUtil.changeAppLanguage(UserConfigManage.getInstance().getCurrentAppLanguage(), newBase);
+        super.attachBaseContext(newBase);
+
 
     }
 
@@ -107,10 +108,10 @@
         super.onDestroy();
         //闅愯棌Loading
         hideLoading();
-        //娉ㄩ攢EventBus
-        unregisterEventBus();
         //绉婚櫎Activity
         AppManagerUtils.getAppManager().removeActivity(this);
+        //娉ㄩ攢EventBus
+        unregisterEventBus();
 
     }
 
@@ -170,6 +171,7 @@
     public int dip2px(float dpValue) {
         final float scale = getResources().getDisplayMetrics().density;
         return (int) (dpValue * scale + 0.5f);
+
     }
 
     /**

--
Gitblit v1.8.0