Merge remote-tracking branch 'origin/master'

This commit is contained in:
zlzw 2023-04-24 17:00:56 +08:00
commit abe71808fb
2 changed files with 61 additions and 0 deletions

View File

@ -4,6 +4,8 @@ package com.shayu.phonelive.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
@ -102,6 +104,15 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
private int mVideoLastProgress;
private boolean mForward;
@Override
public Resources getResources() {
Resources res = super.getResources();
Configuration config = new Configuration();
config.setToDefaults();
config.locale = IMLoginManager.get(this).getLocaleLanguage();
res.updateConfiguration(config, res.getDisplayMetrics());
return res;
}
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
getWindow().requestFeature(Window.FEATURE_ACTIVITY_TRANSITIONS);

View File

@ -26,5 +26,55 @@ ext {
isGooglePlay : true,
//
isUploadLog : true
]
}