整理Entrance type

This commit is contained in:
kehaoyuan
2017-10-16 16:49:22 +08:00
parent 52433ba347
commit d9bb60e66b
50 changed files with 255 additions and 208 deletions

View File

@ -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));