Browse Source

Removed useless setting

master
Anthony Restaino 10 years ago
parent
commit
05ddc95c9b
  1. 13
      src/acr/browser/lightning/LightningView.java

13
src/acr/browser/lightning/LightningView.java

@ -48,7 +48,6 @@ public class LightningView { @@ -48,7 +48,6 @@ public class LightningView {
private static String mDefaultUserAgent;
private static Bitmap mWebpageBitmap;
private static SharedPreferences mPreferences;
private static boolean mWideViewPort;
private AdBlock mAdBlock;
private boolean isForegroundTab;
private IntentUtils mIntentUtils;
@ -143,7 +142,6 @@ public class LightningView { @@ -143,7 +142,6 @@ public class LightningView {
}
} else {
if (mHomepage.startsWith("about:home")) {
mSettings.setUseWideViewPort(false);
mWebView.loadUrl(getHomepage());
} else if (mHomepage.startsWith("about:bookmarks")) {
mBrowserController.openBookmarkPage(mWebView);
@ -333,7 +331,7 @@ public class LightningView { @@ -333,7 +331,7 @@ public class LightningView {
true));
mSettings.setUseWideViewPort(mPreferences.getBoolean(PreferenceConstants.USE_WIDE_VIEWPORT,
true));
mWideViewPort = mPreferences.getBoolean(PreferenceConstants.USE_WIDE_VIEWPORT, true);
mPreferences.getBoolean(PreferenceConstants.USE_WIDE_VIEWPORT, true);
mSettings.setLoadWithOverviewMode(mPreferences.getBoolean(
PreferenceConstants.OVERVIEW_MODE, true));
switch (mPreferences.getInt(PreferenceConstants.TEXT_SIZE, 3)) {
@ -721,21 +719,16 @@ public class LightningView { @@ -721,21 +719,16 @@ public class LightningView {
if (view.isShown()) {
view.invalidate();
}
if (view.getTitle() == null) {
if (view.getTitle() == null || view.getTitle().isEmpty()) {
mTitle.setTitle(mActivity.getString(R.string.untitled));
} else if (!view.getTitle().isEmpty()) {
mTitle.setTitle(view.getTitle());
} else {
mTitle.setTitle(mActivity.getString(R.string.untitled));
mTitle.setTitle(view.getTitle());
}
mBrowserController.update();
}
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
if (!mSettings.getUseWideViewPort()) {
mSettings.setUseWideViewPort(mWideViewPort);
}
if (isShown()) {
mBrowserController.updateUrl(url);
mBrowserController.showActionBar();

Loading…
Cancel
Save