Fixes issue

This commit is contained in:
tom79 2017-10-21 12:34:59 +02:00
parent bb6dca8d73
commit e7da61bdd3
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class RetrieveContextAsyncTask extends AsyncTask<Void, Void, Void> {
api = new API(context);
statusContext = api.getStatusContext(statusId);
//Retrieves the first toot
if( statusContext.getDescendants().size() > 0 ) {
if( statusContext.getAncestors().size() > 0 ) {
statusContext = api.getStatusContext(statusContext.getAncestors().get(0).getId());
}
return null;