Fixes issue #186 - Store visibility of the toots for replies

This commit is contained in:
stom79 2017-12-23 08:42:27 +01:00
parent 63a1569029
commit 34e8438d7c
1 changed files with 20 additions and 19 deletions

View File

@ -440,7 +440,6 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
}
}
}
toot_sensitive.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
@ -1830,6 +1829,9 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
else
userId = accountReply.getId();
//If toot is not restored
if( restored == -1 ){
switch (tootReply.getVisibility()){
case "public":
visibility = "public";
@ -1848,8 +1850,7 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
toot_visibility.setImageResource(R.drawable.ic_mail_outline_toot);
break;
}
//If toot is not restored
if( restored == -1 ){
if( tootReply.getSpoiler_text() != null && tootReply.getSpoiler_text().length() > 0) {
toot_cw_content.setText(tootReply.getSpoiler_text());
toot_cw_content.setVisibility(View.VISIBLE);