aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-02-08 12:13:53 +0100
committerChristian Schneppe <christian@pix-art.de>2019-02-08 12:13:53 +0100
commit8bdc5d14861e095ea0c19562f89a82a670ef9018 (patch)
treef66820bb5d047129ee4288967e276d6ea267baa6 /src/main/java/de/pixart
parenta7332aace11116c82c45dbf77176d02280e480b9 (diff)
integrate single profile mode in CreatePublicChannelDialog
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/CreatePublicChannelDialog.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/CreatePublicChannelDialog.java b/src/main/java/de/pixart/messenger/ui/CreatePublicChannelDialog.java
index fe3244483..a4ecc6751 100644
--- a/src/main/java/de/pixart/messenger/ui/CreatePublicChannelDialog.java
+++ b/src/main/java/de/pixart/messenger/ui/CreatePublicChannelDialog.java
@@ -38,6 +38,7 @@ public class CreatePublicChannelDialog extends DialogFragment implements OnBacke
private static final char[] FORBIDDEN = new char[]{'\u0022', '&', '\'', '/', ':', '<', '>', '@'};
private static final String ACCOUNTS_LIST_KEY = "activated_accounts_list";
+ private static final String MULTIPLE_ACCOUNTS = "multiple_accounts_enabled";
private CreatePublicChannelDialogListener mListener;
private KnownHostsAdapter knownHostsAdapter;
private boolean jidWasModified = false;
@@ -67,6 +68,13 @@ public class CreatePublicChannelDialog extends DialogFragment implements OnBacke
final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setTitle(R.string.create_public_channel);
final CreatePublicChannelDialogBinding binding = DataBindingUtil.inflate(getActivity().getLayoutInflater(), R.layout.create_public_channel_dialog, null, false);
+ if (getArguments().getBoolean(MULTIPLE_ACCOUNTS)) {
+ binding.yourAccount.setVisibility(View.VISIBLE);
+ binding.account.setVisibility(View.VISIBLE);
+ } else {
+ binding.yourAccount.setVisibility(View.GONE);
+ binding.account.setVisibility(View.GONE);
+ }
binding.account.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {