more syntax improvements
This commit is contained in:
parent
b150a01706
commit
adc1c80b77
@ -51,7 +51,6 @@ import java.io.BufferedReader;
|
|||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import org.json.*;
|
import org.json.*;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is basically a singleton used to represent the database at the core
|
* This is basically a singleton used to represent the database at the core
|
||||||
* of all of the {@link android.content.ContentProvider}s used at the core
|
* of all of the {@link android.content.ContentProvider}s used at the core
|
||||||
@ -322,16 +321,17 @@ public class DBHelper extends SQLiteOpenHelper {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i < reposArray.length(); i++) {
|
for (int i = 0; i < reposArray.length(); i++) {
|
||||||
|
JSONObject repo = reposArray.getJSONObject(i);
|
||||||
insertRepo(
|
insertRepo(
|
||||||
db,
|
db,
|
||||||
reposArray.getJSONObject(i).getString("name"),
|
repo.getString("name"),
|
||||||
reposArray.getJSONObject(i).getString("address"),
|
repo.getString("address"),
|
||||||
reposArray.getJSONObject(i).getString("description"),
|
repo.getString("description"),
|
||||||
reposArray.getJSONObject(i).getString("version"),
|
repo.getString("version"),
|
||||||
reposArray.getJSONObject(i).getString("enabled"),
|
repo.getString("enabled"),
|
||||||
reposArray.getJSONObject(i).getString("priority"),
|
repo.getString("priority"),
|
||||||
reposArray.getJSONObject(i).getString("pushRequests"),
|
repo.getString("pushRequests"),
|
||||||
reposArray.getJSONObject(i).getString("pubkey")
|
repo.getString("pubkey")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user