46 lines
1.4 KiB
Java
46 lines
1.4 KiB
Java
package com.gh.gamecenter;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
|
import com.gh.gamecenter.common.base.ToolBarActivity;
|
|
import com.gh.gamecenter.common.constant.EntranceConsts;
|
|
import com.gh.gamecenter.common.constant.RouteConsts;
|
|
import com.gh.gamecenter.common.utils.ExtensionsKt;
|
|
import com.halo.assistant.fragment.AboutFragment;
|
|
|
|
/**
|
|
* Created by khy on 2017/2/28.
|
|
*/
|
|
@Route(path = RouteConsts.activity.aboutActivity)
|
|
public class AboutActivity extends ToolBarActivity {
|
|
|
|
@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(EntranceConsts.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);
|
|
}
|
|
}
|