File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
app/src/main/java/net/kollnig/missioncontrol/data Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,8 @@ private void loadXrayTrackerDomains (Context context) {
213
213
Company company ;
214
214
String country = jsonCompany .getString ("country" );
215
215
String name = jsonCompany .getString ("owner_name" );
216
- String parent = null ;
217
216
if (!jsonCompany .isNull ("root_parent" )) {
218
- parent = jsonCompany .getString ("root_parent" );
217
+ name = jsonCompany .getString ("root_parent" );
219
218
}
220
219
boolean necessary ;
221
220
if (jsonCompany .has ("necessary" )) {
@@ -225,10 +224,10 @@ private void loadXrayTrackerDomains (Context context) {
225
224
necessary = false ;
226
225
}
227
226
228
- company = companies .get (parent );
227
+ company = companies .get (name );
229
228
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 );
232
231
}
233
232
234
233
JSONArray domains = jsonCompany .getJSONArray ("doms" );
You can’t perform that action at this time.
0 commit comments