Lint fixes, change nullable annotation in preference manager

This commit is contained in:
Anthony Restaino 2016-01-30 22:11:45 -05:00
parent 65c2c9c461
commit 135cf2e572
2 changed files with 2 additions and 3 deletions

View File

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

View File

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