package com.gh.gamecenter;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.gh.gamecenter.common.base.activity.ToolBarActivity;
import com.gh.gamecenter.common.utils.ExtensionsKt;
import com.gh.gamecenter.info.InfoWrapperFragment;

import java.util.ArrayList;

/**
 * Created by khy on 10/04/18.
 */

public class InfoActivity extends ToolBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ExtensionsKt.updateStatusBarColor(this, com.gh.gamecenter.common.R.color.ui_surface, com.gh.gamecenter.common.R.color.ui_surface);
    }

    public static Intent getIntent(Context context) {
        return getTargetIntent(context, InfoActivity.class, InfoWrapperFragment.class);
    }

    @Override
    protected void onDarkModeChanged() {
        super.onDarkModeChanged();
        ExtensionsKt.updateStatusBarColor(this, com.gh.gamecenter.common.R.color.ui_surface, com.gh.gamecenter.common.R.color.ui_surface);
    }

    @Override
    protected void updateStaticViewBackground(View view) {
        ArrayList<Integer> blackList = new ArrayList<>();
        blackList.add(R.id.tab_title);
        updateStaticView(view, blackList);
    }
}
