提交 a0cf17f8 编写于 作者: D Dong Peng 提交者: libing

fennec: mobile: Add default url to the fennec temporarily.

Signed-off-by: NDong Peng <dongpeng@emindsoft.com.cn>
Reviewed-by: NChen Gang <chengang@emindsoft.com.cn>
上级 33bd0dff
......@@ -246,6 +246,8 @@ public class BrowserApp extends GeckoApp
private static final int ADDON_MENU_OFFSET = 1000;
public static final String TAB_HISTORY_FRAGMENT_TAG = "tabHistoryFragment";
private static final String HOME_PAGE_URL= "https://github.com/openthos/openthos/wiki";
private static class MenuItemInfo {
public int id;
public String label;
......@@ -2632,6 +2634,13 @@ public class BrowserApp extends GeckoApp
}
private void showFirstrunPager() {
SharedPreferences homePreferences = GeckoSharedPrefs.forProfile(this);
homePreferences.edit()
.putString(GeckoPreferences.PREFS_HOMEPAGE, HOME_PAGE_URL)
.putString(GeckoPreferences.PREFS_HOMEPAGE_PARTNER_COPY, HOME_PAGE_URL)
.apply();
if (Experiments.isInExperimentLocal(getContext(), Experiments.ONBOARDING3_A)) {
Telemetry.startUISession(TelemetryContract.Session.EXPERIMENT, Experiments.ONBOARDING3_A);
GeckoSharedPrefs.forProfile(getContext()).edit().putString(Experiments.PREF_ONBOARDING_VERSION, Experiments.ONBOARDING3_A).apply();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册