54 lines
1.6 KiB
Java
54 lines
1.6 KiB
Java
package com.gh.gamecenter;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.gh.gamecenter.collection.CollectionWrapperFragment;
|
|
import com.gh.gamecenter.common.base.activity.ToolBarActivity;
|
|
import com.gh.gamecenter.common.constant.EntranceConsts;
|
|
import com.gh.gamecenter.common.utils.ExtensionsKt;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
/**
|
|
* 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.ui_surface, R.color.ui_surface);
|
|
}
|
|
|
|
@Override
|
|
protected boolean isAutoResetViewBackgroundEnabled() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected void onDarkModeChanged() {
|
|
super.onDarkModeChanged();
|
|
ExtensionsKt.updateStatusBarColor(this, R.color.ui_surface, R.color.ui_surface);
|
|
}
|
|
|
|
@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);
|
|
}
|
|
|
|
@Override
|
|
protected void updateStaticViewBackground(View view) {
|
|
ArrayList<Integer> blackList = new ArrayList<>();
|
|
blackList.add(R.id.tab_title);
|
|
updateStaticView(view, blackList);
|
|
}
|
|
|
|
}
|