Activity 统一入口
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
package com.gh.gamecenter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.View;
|
||||
@ -51,6 +53,13 @@ public class KcSelectGameActivity extends BaseActivity {
|
||||
private LinearLayoutManager layoutManager;
|
||||
private RelativeLayout.LayoutParams rparams;
|
||||
|
||||
@NonNull
|
||||
public static Intent getIntent(Context context, boolean isConn) {
|
||||
Intent intent = new Intent(context, KcSelectGameActivity.class);
|
||||
intent.putExtra("isConn", isConn);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_kc_select_game;
|
||||
@ -109,8 +118,7 @@ public class KcSelectGameActivity extends BaseActivity {
|
||||
finish();
|
||||
} else {
|
||||
AppController.put("FileInfo", selectData);
|
||||
Intent intent = new Intent(KcSelectGameActivity.this, ChooseReceiverActivity.class);
|
||||
startActivityForResult(intent, 0x123);
|
||||
startActivityForResult(ChooseReceiverActivity.getIntent(KcSelectGameActivity.this, false), 0x123);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user