Merge "Fix NPE in isPrivateBrowsingEnabled()" into jb-dev
This commit is contained in:
@@ -2598,7 +2598,8 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean isPrivateBrowsingEnabled() {
|
public boolean isPrivateBrowsingEnabled() {
|
||||||
return getSettings().isPrivateBrowsingEnabled();
|
WebSettingsClassic settings = getSettings();
|
||||||
|
return (settings != null) ? settings.isPrivateBrowsingEnabled() : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startPrivateBrowsing() {
|
private void startPrivateBrowsing() {
|
||||||
|
|||||||
Reference in New Issue
Block a user