Update src/org/thoughtcrime/securesms/connect/AccountManager.java

Co-authored-by: Hocuri <hocuri@gmx.de>
This commit is contained in:
bjoern
2021-07-28 16:52:54 +02:00
committed by GitHub
parent 1c4b06c501
commit a6490bf4cb
@@ -169,7 +169,7 @@ public class AccountManager {
AlertDialog.Builder builder = new AlertDialog.Builder(activity)
.setTitle(R.string.switch_account)
.setNegativeButton(R.string.cancel, null)
.setSingleChoiceItems(menu.toArray(new String[menu.size()]), presel, (dialog, which) -> {
.setSingleChoiceItems(menu.toArray(new String[0]), presel, (dialog, which) -> {
dialog.dismiss();
if (which==addAccount) {
new SwitchAccountAsyncTask(activity, R.string.one_moment, 0, null).execute();