Skip to content

Commit f8518c5

Browse files
committed
Fix before release
1 parent 7190528 commit f8518c5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/src/main/java/net/kollnig/missioncontrol/data/TrackerList.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,8 @@ private void loadXrayTrackerDomains (Context context) {
213213
Company company;
214214
String country = jsonCompany.getString("country");
215215
String name = jsonCompany.getString("owner_name");
216-
String parent = null;
217216
if (!jsonCompany.isNull("root_parent")) {
218-
parent = jsonCompany.getString("root_parent");
217+
name = jsonCompany.getString("root_parent");
219218
}
220219
boolean necessary;
221220
if (jsonCompany.has("necessary")) {
@@ -225,10 +224,10 @@ private void loadXrayTrackerDomains (Context context) {
225224
necessary = false;
226225
}
227226

228-
company = companies.get(parent);
227+
company = companies.get(name);
229228
if (company == null) {
230-
company = new Company(country, parent, "Uncategorised", necessary);
231-
companies.put(parent, company);
229+
company = new Company(country, name, "Uncategorised", necessary);
230+
companies.put(name, company);
232231
}
233232

234233
JSONArray domains = jsonCompany.getJSONArray("doms");

0 commit comments

Comments
 (0)