Browse Source

ammend

innovation-week
Kate Glazko 1 year ago
parent
commit
c7604436c3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/org/mozilla/fenix/browser/UriOpenedObserver.kt

+ 1
- 1
app/src/main/java/org/mozilla/fenix/browser/UriOpenedObserver.kt View File

@ -96,7 +96,7 @@ class UriOpenedObserver(
// JSON Stuff
val root = JSONObject(my_string)
val results = root.getJSONArray("items")
for (i in 0 until (results.length()-1)) {
for (i in 0 until 10) {
val urlTitle = JSONObject(results[i].toString()).get("link").toString()
Log.d("HELLO", urlTitle)
context.components.useCases.tabsUseCases.addTab.invoke(urlTitle, false)

Loading…
Cancel
Save