From 52f5a8bd245aeeeb97eb7b3d73939a30fe6f33c2 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 18 七月 2024 11:06:49 +0800 Subject: [PATCH] 2024年07月18日11:06:44 --- 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