整理Entrance type
This commit is contained in:
@ -24,6 +24,7 @@ import com.gh.base.BaseActivity;
|
||||
import com.gh.base.OnRequestCallBackListener;
|
||||
import com.gh.common.util.CheckLoginUtils;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.EntranceUtils;
|
||||
import com.gh.gamecenter.adapter.VoteAdapter;
|
||||
import com.gh.gamecenter.entity.UserDataEntity;
|
||||
import com.gh.gamecenter.entity.VersionVoteEntity;
|
||||
@ -78,8 +79,8 @@ public class VoteActivity extends BaseActivity implements SwipeRefreshLayout.OnR
|
||||
@NonNull
|
||||
public static Intent getIntent(Context context, String gameName, String gameId) {
|
||||
Intent intent = new Intent(context, VoteActivity.class);
|
||||
intent.putExtra("gameName", gameName);
|
||||
intent.putExtra("gameId", gameId);
|
||||
intent.putExtra(EntranceUtils.KEY_GAMENAME, gameName);
|
||||
intent.putExtra(EntranceUtils.KEY_GAMEID, gameId);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@ -92,8 +93,8 @@ public class VoteActivity extends BaseActivity implements SwipeRefreshLayout.OnR
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
String gameName = getIntent().getExtras().getString("gameName");
|
||||
mGameId = getIntent().getExtras().getString("gameId");
|
||||
String gameName = getIntent().getExtras().getString(EntranceUtils.KEY_GAMENAME);
|
||||
mGameId = getIntent().getExtras().getString(EntranceUtils.KEY_GAMEID);
|
||||
|
||||
initTitle(getString(R.string.title_vote_formatable, gameName));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user