42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.gh.gamecenter;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.gh.common.util.DisplayUtils;
|
|
import com.gh.common.util.EntranceUtils;
|
|
import com.gh.common.util.ExtensionsKt;
|
|
import com.halo.assistant.fragment.AboutFragment;
|
|
|
|
/**
|
|
* Created by khy on 2017/2/28.
|
|
*/
|
|
public class AboutActivity extends NormalActivity {
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
ExtensionsKt.updateStatusBarColor(this, R.color.black, R.color.white);
|
|
}
|
|
|
|
@NonNull
|
|
public static Intent getIntent(Context context, boolean isUpdate) {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putBoolean(EntranceUtils.KEY_VERSION_UPDATE, isUpdate);
|
|
return getTargetIntent(context, AboutActivity.class, AboutFragment.class, bundle);
|
|
}
|
|
|
|
@Override
|
|
protected boolean isAutoResetViewBackgroundEnabled() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected void onNightModeChange() {
|
|
super.onNightModeChange();
|
|
ExtensionsKt.updateStatusBarColor(this, R.color.black, R.color.white);
|
|
}
|
|
}
|