From 1b7da849605ad4d0a4723816b3e986996ff87956 Mon Sep 17 00:00:00 2001 From: Vavassor Date: Sun, 26 Mar 2017 23:22:59 -0400 Subject: [PATCH] This fixes the report activity not fetching recent statuses correctly. --- .../java/com/keylesspalace/tusky/ReportActivity.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ReportActivity.java b/app/src/main/java/com/keylesspalace/tusky/ReportActivity.java index a0cfb505..57b7cb8c 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ReportActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ReportActivity.java @@ -47,9 +47,6 @@ public class ReportActivity extends BaseActivity { private ReportAdapter adapter; private boolean reportAlreadyInFlight; private String accountId; - private String accountUsername; - private String statusId; - private String statusContent; private EditText comment; @Override @@ -59,9 +56,9 @@ public class ReportActivity extends BaseActivity { Intent intent = getIntent(); accountId = intent.getStringExtra("account_id"); - accountUsername = intent.getStringExtra("account_username"); - statusId = intent.getStringExtra("status_id"); - statusContent = intent.getStringExtra("status_content"); + String accountUsername = intent.getStringExtra("account_username"); + String statusId = intent.getStringExtra("status_id"); + String statusContent = intent.getStringExtra("status_content"); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); @@ -164,7 +161,7 @@ public class ReportActivity extends BaseActivity { List statusList = response.body(); List itemList = new ArrayList<>(); for (Status status : statusList) { - if (status.reblog != null) { + if (status.reblog == null) { ReportAdapter.ReportStatus item = new ReportAdapter.ReportStatus( status.id, status.content, false); itemList.add(item);