1、统一了entrance
2、统一了部分跳转intent,传参返回intent 3、修改出dialogfragment 4、clipboardmanager等处理
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
package com.gh.gamecenter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.text.TextUtils;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
@ -12,6 +14,7 @@ import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.common.util.DisplayUtils;
|
||||
import com.gh.common.util.EntranceUtils;
|
||||
import com.gh.gamecenter.entity.CommentnumEntity;
|
||||
import com.gh.gamecenter.retrofit.RetrofitManager;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
@ -38,7 +41,13 @@ public class WebActivity extends BaseActivity {
|
||||
private String newsId;
|
||||
private int commentNum;
|
||||
|
||||
private String entrance;
|
||||
@NonNull
|
||||
public static Intent getWebIntent(Context context) {
|
||||
Intent intent = new Intent(context, WebActivity.class);
|
||||
intent.putExtra("gameName", "使用条款与免责声明");
|
||||
intent.putExtra("url", "http://api.ghzhushou.com/disclaimer");
|
||||
return intent;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
@ -60,8 +69,6 @@ public class WebActivity extends BaseActivity {
|
||||
newsId = getIntent().getStringExtra("newsId");
|
||||
}
|
||||
|
||||
entrance = getIntent().getStringExtra("entrance");
|
||||
|
||||
init(webTitle);
|
||||
|
||||
webView.loadUrl(webUrl);
|
||||
@ -139,7 +146,7 @@ public class WebActivity extends BaseActivity {
|
||||
Intent intent = new Intent(this, MessageDetailActivity.class);
|
||||
intent.putExtra("newsId", newsId);
|
||||
intent.putExtra("commentNum", commentNum);
|
||||
intent.putExtra("entrance", entrance + "+(光环浏览器)");
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, mEntrance + "+(光环浏览器)");
|
||||
startActivityForResult(intent, 1001);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user