correctly unmute accounts
This commit is contained in:
parent
a925b45489
commit
d2f2bfd8d3
|
@ -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);
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue