|
|
@ -47,9 +47,6 @@ public class ReportActivity extends BaseActivity { |
|
|
|
private ReportAdapter adapter; |
|
|
|
private ReportAdapter adapter; |
|
|
|
private boolean reportAlreadyInFlight; |
|
|
|
private boolean reportAlreadyInFlight; |
|
|
|
private String accountId; |
|
|
|
private String accountId; |
|
|
|
private String accountUsername; |
|
|
|
|
|
|
|
private String statusId; |
|
|
|
|
|
|
|
private String statusContent; |
|
|
|
|
|
|
|
private EditText comment; |
|
|
|
private EditText comment; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -59,9 +56,9 @@ public class ReportActivity extends BaseActivity { |
|
|
|
|
|
|
|
|
|
|
|
Intent intent = getIntent(); |
|
|
|
Intent intent = getIntent(); |
|
|
|
accountId = intent.getStringExtra("account_id"); |
|
|
|
accountId = intent.getStringExtra("account_id"); |
|
|
|
accountUsername = intent.getStringExtra("account_username"); |
|
|
|
String accountUsername = intent.getStringExtra("account_username"); |
|
|
|
statusId = intent.getStringExtra("status_id"); |
|
|
|
String statusId = intent.getStringExtra("status_id"); |
|
|
|
statusContent = intent.getStringExtra("status_content"); |
|
|
|
String statusContent = intent.getStringExtra("status_content"); |
|
|
|
|
|
|
|
|
|
|
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); |
|
|
|
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); |
|
|
|
setSupportActionBar(toolbar); |
|
|
|
setSupportActionBar(toolbar); |
|
|
@ -164,7 +161,7 @@ public class ReportActivity extends BaseActivity { |
|
|
|
List<Status> statusList = response.body(); |
|
|
|
List<Status> statusList = response.body(); |
|
|
|
List<ReportAdapter.ReportStatus> itemList = new ArrayList<>(); |
|
|
|
List<ReportAdapter.ReportStatus> itemList = new ArrayList<>(); |
|
|
|
for (Status status : statusList) { |
|
|
|
for (Status status : statusList) { |
|
|
|
if (status.reblog != null) { |
|
|
|
if (status.reblog == null) { |
|
|
|
ReportAdapter.ReportStatus item = new ReportAdapter.ReportStatus( |
|
|
|
ReportAdapter.ReportStatus item = new ReportAdapter.ReportStatus( |
|
|
|
status.id, status.content, false); |
|
|
|
status.id, status.content, false); |
|
|
|
itemList.add(item); |
|
|
|
itemList.add(item); |
|
|
|