| | |
| | | import android.app.Activity; |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | | import android.content.res.Configuration; |
| | | import android.os.Bundle; |
| | | import android.view.View; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.annotation.Nullable; |
| | | import androidx.appcompat.app.AppCompatActivity; |
| | | |
| | |
| | | |
| | | @Override |
| | | protected void attachBaseContext(Context newBase) { |
| | | super.attachBaseContext(newBase); |
| | | //app中英文设置 |
| | | LocalManageUtil.changeAppLanguage(UserConfigManage.getInstance().getCurrentAppLanguage(), newBase); |
| | | super.attachBaseContext(newBase); |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | super.onDestroy(); |
| | | //隐藏Loading |
| | | hideLoading(); |
| | | //注销EventBus |
| | | unregisterEventBus(); |
| | | //移除Activity |
| | | AppManagerUtils.getAppManager().removeActivity(this); |
| | | //注销EventBus |
| | | unregisterEventBus(); |
| | | |
| | | } |
| | | |
| | |
| | | public int dip2px(float dpValue) { |
| | | final float scale = getResources().getDisplayMetrics().density; |
| | | return (int) (dpValue * scale + 0.5f); |
| | | |
| | | } |
| | | |
| | | /** |