mac
2024-07-22 54cb06b771447df9bca5f3eae88a9caaf8ec51ff
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);
    }
@@ -170,6 +171,7 @@
    public int dip2px(float dpValue) {
        final float scale = getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
    /**