Browse Source

Lint fixes, change nullable annotation in preference manager

master
Anthony Restaino 9 years ago
parent
commit
135cf2e572
  1. 3
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 2
      app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java

3
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -559,8 +559,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
colorMode &= !mDarkTheme; colorMode &= !mDarkTheme;
if (!isIncognito() && !colorMode && !mDarkTheme && mWebpageBitmap != null) { if (!isIncognito() && !colorMode && !mDarkTheme && mWebpageBitmap != null) {
changeToolbarBackground(mWebpageBitmap, null); changeToolbarBackground(mWebpageBitmap, null);
} else if (!isIncognito() && currentView != null && !mDarkTheme } else if (!isIncognito() && currentView != null && !mDarkTheme) {
&& currentView.getFavicon() != null) {
changeToolbarBackground(currentView.getFavicon(), null); changeToolbarBackground(currentView.getFavicon(), null);
} }

2
app/src/main/java/acr/browser/lightning/preference/PreferenceManager.java

@ -391,7 +391,7 @@ public class PreferenceManager {
putBoolean(Name.RESTORE_LOST_TABS, enable); putBoolean(Name.RESTORE_LOST_TABS, enable);
} }
public void setSavedUrl(@NonNull String url) { public void setSavedUrl(@Nullable String url) {
putString(Name.SAVE_URL, url); putString(Name.SAVE_URL, url);
} }

Loading…
Cancel
Save