package com.gh.gamecenter.gamecollection.detail

import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.gh.gamecenter.common.base.activity.ToolBarActivity
import com.gh.gamecenter.R
import com.gh.gamecenter.common.constant.EntranceConsts
import com.gh.gamecenter.core.utils.DisplayUtils
import com.gh.gamecenter.entity.GamesCollectionDetailEntity

class GameCollectionPosterActivity : ToolBarActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        hideToolbar(true)
        DisplayUtils.setStatusBarColor(this, R.color.transparent, false)
    }

    companion object {
        @JvmStatic
        fun getIntent(context: Context, entity: GamesCollectionDetailEntity): Intent {
            val bundle = Bundle()
            bundle.putParcelable(EntranceConsts.KEY_DATA, entity)
            return getTargetIntent(
                context,
                GameCollectionPosterActivity::class.java,
                GameCollectionPosterFragment::class.java,
                bundle
            )
        }
    }
}