diff --git a/app/src/main/java/acr/browser/lightning/constant/StartPage.java b/app/src/main/java/acr/browser/lightning/constant/StartPage.java index 9d7e7d5..eb5912f 100644 --- a/app/src/main/java/acr/browser/lightning/constant/StartPage.java +++ b/app/src/main/java/acr/browser/lightning/constant/StartPage.java @@ -3,29 +3,32 @@ */ package acr.browser.lightning.constant; -import android.app.Activity; +import android.app.Application; +import android.os.AsyncTask; import java.io.File; import java.io.FileWriter; import java.io.IOException; +import java.lang.ref.WeakReference; -import acr.browser.lightning.app.BrowserApp; import acr.browser.lightning.R; +import acr.browser.lightning.app.BrowserApp; import acr.browser.lightning.preference.PreferenceManager; import acr.browser.lightning.utils.Utils; +import acr.browser.lightning.view.LightningView; -public class StartPage { +public class StartPage extends AsyncTask { public static final String FILENAME = "homepage.html"; - private static final String HEAD = "" + private static final String HEAD_1 = "" + "" + "" + "" + "" - + "" - + BrowserApp.getContext().getString(R.string.home) - + "" + + ""; + + private static final String HEAD_2 = "" + "" + "