From 39b39504ac9844630777558843be7c13aff30dfa Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 17 七月 2024 18:09:01 +0800
Subject: [PATCH] 2024年07月17日18:08:36
---
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