补充遗漏的下载按钮打开网页逻辑 https://gitlab.ghzs.com/pm/halo-app-issues/issues/727
This commit is contained in:
@ -173,12 +173,12 @@ public class WebActivity extends NormalActivity {
|
||||
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
|
||||
}
|
||||
|
||||
public static Intent getIntentForWebGame(Context context, String url, String gameName, boolean disableWebviewBackStack) {
|
||||
public static Intent getIntentForWebGame(Context context, String url, String gameName, boolean interveneBackpress) {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString(EntranceUtils.KEY_URL, url);
|
||||
bundle.putString(WebFragment.KEY_GAME_NAME, gameName);
|
||||
bundle.putBoolean(WebFragment.KEY_LEAVE_WEB_PAGE_TO_HANDLE_TITLE, true);
|
||||
if (disableWebviewBackStack) {
|
||||
if (interveneBackpress) {
|
||||
bundle.putBoolean(WebFragment.KEY_REQUIRE_BACK_CONFIRMATION, true);
|
||||
bundle.putString(WebFragment.KEY_BACK_CONFIRMATION_CONTENT, "退出后将不保存当前游戏进度,确定退出吗?");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user