package com.gh.gamecenter; import android.content.Context; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import com.gh.gamecenter.common.base.ToolBarActivity; import com.gh.gamecenter.collection.CollectionWrapperFragment; import com.gh.gamecenter.common.constant.EntranceConsts; import com.gh.gamecenter.common.utils.ExtensionsKt; /** * Created by khy on 18/07/17. */ public class CollectionActivity extends ToolBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ExtensionsKt.updateStatusBarColor(this, R.color.black, R.color.white); } @Override protected boolean isAutoResetViewBackgroundEnabled() { return true; } @Override protected void onNightModeChange() { super.onNightModeChange(); ExtensionsKt.updateStatusBarColor(this, R.color.black, R.color.white); } @NonNull public static Intent getCollectionActivity(Context context, String entrance) { Bundle bundle = new Bundle(); bundle.putString(EntranceConsts.KEY_ENTRANCE, entrance); return getTargetIntent(context, CollectionActivity.class, CollectionWrapperFragment.class, bundle); } }