为所有页面添加Activity(为了接入MTA页面访问统计)
This commit is contained in:
@ -35,7 +35,7 @@ public class WebActivity extends NormalActivity {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_GAMENAME, context.getString(R.string.disclaimer_title));
|
||||
bundle.putString(EntranceUtils.KEY_URL, context.getString(R.string.disclaimer_url));
|
||||
return getIntent(context, WebFragment.class, bundle);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@ -56,7 +56,7 @@ public class WebActivity extends NormalActivity {
|
||||
bundle.putString(EntranceUtils.KEY_GAMENAME, toolBoxEntity.getName());
|
||||
bundle.putParcelable(ToolBoxEntity.TAG, toolBoxEntity);
|
||||
bundle.putBoolean(WebFragment.KEY_ISCOLLECTIONTOOLS, isCollectionTools);
|
||||
return getIntent(context, WebFragment.class, bundle);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@ -75,7 +75,7 @@ public class WebActivity extends NormalActivity {
|
||||
bundle.putString(EntranceUtils.KEY_GAMENAME, concernEntity.getGameName());
|
||||
bundle.putString(EntranceUtils.KEY_NEWSID, concernEntity.getId());
|
||||
bundle.putString(EntranceUtils.KEY_ENTRANCE, entrance);
|
||||
return getIntent(context, WebFragment.class, bundle);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@ -94,7 +94,7 @@ public class WebActivity extends NormalActivity {
|
||||
bundle.putString(EntranceUtils.KEY_GAMENAME, newsEntity.getGameName());
|
||||
bundle.putString(EntranceUtils.KEY_NEWSID, newsEntity.getId());
|
||||
bundle.putString(EntranceUtils.KEY_ENTRANCE, entrance);
|
||||
return getIntent(context, WebFragment.class, bundle);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@ -107,7 +107,7 @@ public class WebActivity extends NormalActivity {
|
||||
// .setFragment(WebFragment.class).build();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_URL, url);
|
||||
return getIntent(context, WebFragment.class, bundle);
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user