Fix: unblock option not working in account activity's menu
This commit is contained in:
parent
853286fa1a
commit
236f8e5f6f
|
@ -1330,8 +1330,13 @@ public class ShowAccountActivity extends BaseActivity implements OnPostActionInt
|
||||||
return true;
|
return true;
|
||||||
case R.id.action_block:
|
case R.id.action_block:
|
||||||
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||||
builderInner.setTitle(stringArrayConf[1]);
|
if (relationship.isBlocking()) {
|
||||||
doActionAccount = API.StatusAction.BLOCK;
|
builderInner.setTitle(stringArrayConf[5]);
|
||||||
|
doActionAccount = API.StatusAction.UNBLOCK;
|
||||||
|
} else {
|
||||||
|
builderInner.setTitle(stringArrayConf[1]);
|
||||||
|
doActionAccount = API.StatusAction.BLOCK;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.action_block_instance:
|
case R.id.action_block_instance:
|
||||||
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
builderInner = new AlertDialog.Builder(ShowAccountActivity.this, style);
|
||||||
|
|
|
@ -115,6 +115,7 @@
|
||||||
<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>
|
<item>Unmute this account?</item>
|
||||||
|
<item>Unblock this account?</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="action_notification">
|
<string-array name="action_notification">
|
||||||
|
|
Loading…
Reference in New Issue