补充遗漏的下载按钮打开网页逻辑 https://gitlab.ghzs.com/pm/halo-app-issues/issues/727

This commit is contained in:
chenjuntao
2020-01-02 09:32:56 +08:00
parent 28bf579518
commit 5134fa19be
3 changed files with 6 additions and 6 deletions

View File

@ -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, "退出后将不保存当前游戏进度,确定退出吗?");
}