correctly unmute accounts

This commit is contained in:
Kasun 2019-05-01 09:57:54 +05:30
parent a925b45489
commit d2f2bfd8d3
2 changed files with 10 additions and 3 deletions

View File

@ -1211,9 +1211,15 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
startActivity(intent);
return true;
case R.id.action_mute:
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
builderInner.setTitle(stringArrayConf[0]);
doActionAccount = API.StatusAction.MUTE;
if (relationship.isMuting()) {
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
builderInner.setTitle(stringArrayConf[4]);
doActionAccount = API.StatusAction.UNMUTE;
} else {
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
builderInner.setTitle(stringArrayConf[0]);
doActionAccount = API.StatusAction.MUTE;
}
break;
case R.id.action_block:
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);

View File

@ -132,6 +132,7 @@
<item>Block this account?</item>
<item>Report this toot?</item>
<item>Block this domain?</item>
<item>Unmute this account?</item>
</string-array>
<string-array name="action_notification">