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);
|
startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
case R.id.action_mute:
|
case R.id.action_mute:
|
||||||
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
if (relationship.isMuting()) {
|
||||||
builderInner.setTitle(stringArrayConf[0]);
|
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||||
doActionAccount = API.StatusAction.MUTE;
|
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;
|
break;
|
||||||
case R.id.action_block:
|
case R.id.action_block:
|
||||||
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||||
|
|
|
@ -132,6 +132,7 @@
|
||||||
<item>Block this account?</item>
|
<item>Block this account?</item>
|
||||||
<item>Report this toot?</item>
|
<item>Report this toot?</item>
|
||||||
<item>Block this domain?</item>
|
<item>Block this domain?</item>
|
||||||
|
<item>Unmute this account?</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="action_notification">
|
<string-array name="action_notification">
|
||||||
|
|
Loading…
Reference in New Issue