Browser: fix open a blank tab for folder-type bookmark
When open all urls of the bookmark folder, it will get
null value for url of subfolder in this folder, and then
will open one blank tab for the subfolder.
Change not to open a blank tab for folder-type bookmark.
CRs-Fixed: 513065
Change-Id: I9a5b24fb9f2976adc283e4b083253ec80cdcc6f6
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 8e118a1..4ec5042 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -1203,8 +1203,10 @@
ComboViewActivity.EXTRA_OPEN_ALL);
Tab parent = getCurrentTab();
for (String url : urls) {
- parent = openTab(url, parent,
- !mSettings.openInBackground(), true);
+ if (url != null) {
+ parent = openTab(url, parent,
+ !mSettings.openInBackground(), true);
+ }
}
} else if (intent.hasExtra(ComboViewActivity.EXTRA_OPEN_SNAPSHOT)) {
long id = intent.getLongExtra(