fix some bugs for app into app store

This commit is contained in:
hukang 2021-03-16 09:22:08 +08:00 committed by hukang hwx963878
parent f733d8a746
commit 922bbfe406
1 changed files with 10 additions and 6 deletions

View File

@ -174,16 +174,20 @@ public class SplashActivity extends BaseActivity implements EasyPermissions.Perm
private void check() {
isCheckPrivacy = prefs.getBoolean(Preferences.KEY_PRIVACY, false);
if (!isCheckPrivacy) {
showPrivacy();
} else {
if (isCheckPrivacy) {
startPermissionsTask();
}
}
/**
* 显示用户协议和隐私政策
*/
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
isCheckPrivacy = prefs.getBoolean(Preferences.KEY_PRIVACY, false);
if (hasFocus && !isCheckPrivacy){
showPrivacy();
}
}
private void showPrivacy() {
mContentView = LayoutInflater.from(SplashActivity.this).inflate(R.layout.popup_user,
null, false);