光环助手-意见反馈优化(二.四.五1)https://gitlab.ghzs.com/pm/halo-app-issues/issues/724

This commit is contained in:
kehaoyuan
2019-12-20 19:31:46 +08:00
parent 501282f243
commit 08936a22c8
18 changed files with 360 additions and 126 deletions

View File

@ -5,6 +5,8 @@ import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import com.gh.common.constant.Constants;
import com.gh.common.util.EntranceUtils;
import com.gh.gamecenter.entity.ConcernEntity;
@ -16,8 +18,6 @@ import java.net.URLEncoder;
import java.util.Date;
import java.util.Locale;
import androidx.annotation.NonNull;
/**
* Created by khy on 2016/10/18.
*/
@ -150,13 +150,21 @@ public class WebActivity extends NormalActivity {
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
}
@NonNull
public static Intent getIntentByUrl(Context context, String url) {
public static Intent getIntent(Context context, String url, boolean autoCompletionTitle) {
Bundle bundle = new Bundle();
bundle.putString(EntranceUtils.KEY_URL, url);
bundle.putBoolean(WebFragment.KEY_COMPLETION_TITLE, autoCompletionTitle);
bundle.putBoolean(WebFragment.KEY_LEAVE_WEB_PAGE_TO_HANDLE_TITLE, false);
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
}
@NonNull
public static Intent getIntentByUrl(Context context, String url) {
return getIntentByUrl(context, url, false);
}
@NonNull
public static Intent getIntentByUrl(Context context, String url, boolean leaveWebPageHandleTitle) {
Bundle bundle = new Bundle();
@ -164,7 +172,7 @@ public class WebActivity extends NormalActivity {
bundle.putBoolean(WebFragment.KEY_LEAVE_WEB_PAGE_TO_HANDLE_TITLE, leaveWebPageHandleTitle);
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
}
public static Intent getIntentForWebGame(Context context, String url, String gameName, boolean disableWebviewBackStack) {
Bundle bundle = new Bundle();
bundle.putString(EntranceUtils.KEY_URL, url);
@ -176,7 +184,7 @@ public class WebActivity extends NormalActivity {
}
return getTargetIntent(context, WebActivity.class, WebFragment.class, bundle);
}
@Override
protected View.OnClickListener provideNavigationItemClickListener() {
Bundle bundle = getIntent().getBundleExtra(NORMAL_FRAGMENT_BUNDLE);