Fixes issue #59: Prevent the loss of privacy when replying to a toot

This commit is contained in:
stom79 2017-11-25 14:05:39 +01:00
parent e463bc4ebe
commit c789e8be69
1 changed files with 3 additions and 3 deletions

View File

@ -422,8 +422,8 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
if (!sharedUri.isEmpty()) {
uploadSharedImage(sharedUri);
}
boolean isAccountPrivate = account.isLocked();
visibility = sharedpreferences.getString(Helper.SET_TOOT_VISIBILITY + "@" + account.getAcct() + "@" + account.getInstance(), "public");
boolean isAccountPrivate = (account.isLocked() || visibility.equals("private"));
if(isAccountPrivate){
if( tootReply == null) {
visibility = "private";
@ -438,7 +438,7 @@ public class TootActivity extends AppCompatActivity implements OnRetrieveSearcAc
}
}else {
if( tootReply == null){
visibility = sharedpreferences.getString(Helper.SET_TOOT_VISIBILITY + "@" + account.getAcct() + "@" + account.getInstance(), "public");
switch (visibility) {
case "public":
toot_visibility.setImageResource(R.drawable.ic_public_toot);