Fixes issue #186 - Store visibility of the toots for replies
This commit is contained in:
parent
63a1569029
commit
34e8438d7c
|
@ -440,7 +440,6 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
toot_sensitive.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
toot_sensitive.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
@ -1830,6 +1829,9 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
else
|
else
|
||||||
userId = accountReply.getId();
|
userId = accountReply.getId();
|
||||||
|
|
||||||
|
//If toot is not restored
|
||||||
|
if( restored == -1 ){
|
||||||
|
|
||||||
switch (tootReply.getVisibility()){
|
switch (tootReply.getVisibility()){
|
||||||
case "public":
|
case "public":
|
||||||
visibility = "public";
|
visibility = "public";
|
||||||
|
@ -1848,8 +1850,7 @@ public class TootActivity extends BaseActivity implements OnRetrieveSearcAccount
|
||||||
toot_visibility.setImageResource(R.drawable.ic_mail_outline_toot);
|
toot_visibility.setImageResource(R.drawable.ic_mail_outline_toot);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//If toot is not restored
|
|
||||||
if( restored == -1 ){
|
|
||||||
if( tootReply.getSpoiler_text() != null && tootReply.getSpoiler_text().length() > 0) {
|
if( tootReply.getSpoiler_text() != null && tootReply.getSpoiler_text().length() > 0) {
|
||||||
toot_cw_content.setText(tootReply.getSpoiler_text());
|
toot_cw_content.setText(tootReply.getSpoiler_text());
|
||||||
toot_cw_content.setVisibility(View.VISIBLE);
|
toot_cw_content.setVisibility(View.VISIBLE);
|
||||||
|
|
Loading…
Reference in New Issue