Fixes issue
This commit is contained in:
parent
bb6dca8d73
commit
e7da61bdd3
|
@ -45,7 +45,7 @@ public class RetrieveContextAsyncTask extends AsyncTask<Void, Void, Void> {
|
||||||
api = new API(context);
|
api = new API(context);
|
||||||
statusContext = api.getStatusContext(statusId);
|
statusContext = api.getStatusContext(statusId);
|
||||||
//Retrieves the first toot
|
//Retrieves the first toot
|
||||||
if( statusContext.getDescendants().size() > 0 ) {
|
if( statusContext.getAncestors().size() > 0 ) {
|
||||||
statusContext = api.getStatusContext(statusContext.getAncestors().get(0).getId());
|
statusContext = api.getStatusContext(statusContext.getAncestors().get(0).getId());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue