diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java b/src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java index da0fe37de..900f4a42d 100644 --- a/src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java +++ b/src/main/java/de/pixart/messenger/ui/CreateConferenceDialog.java @@ -16,6 +16,7 @@ import java.util.List; import de.pixart.messenger.R; import de.pixart.messenger.databinding.CreateConferenceDialogBinding; import de.pixart.messenger.services.XmppConnectionService; +import de.pixart.messenger.ui.util.DelayedHintHelper; public class CreateConferenceDialog extends DialogFragment { @@ -45,10 +46,6 @@ public class CreateConferenceDialog extends DialogFragment { public Dialog onCreateDialog(Bundle savedInstanceState) { final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(R.string.create_conference); - //final View dialogView = getActivity().getLayoutInflater().inflate(R.layout.create_conference_dialog, null); - //final TextView yourAccount = dialogView.findViewById(R.id.your_account); - //final Spinner spinner = dialogView.findViewById(R.id.account); - //final EditText subject = dialogView.findViewById(R.id.subject); CreateConferenceDialogBinding binding = DataBindingUtil.inflate(getActivity().getLayoutInflater(), R.layout.create_conference_dialog, null, false); if (getArguments().getBoolean(MULTIPLE_ACCOUNTS)) { binding.yourAccount.setVisibility(View.VISIBLE); @@ -60,8 +57,9 @@ public class CreateConferenceDialog extends DialogFragment { ArrayList<String> mActivatedAccounts = getArguments().getStringArrayList(ACCOUNTS_LIST_KEY); StartConversationActivity.populateAccountSpinner(getActivity(), mActivatedAccounts, binding.account); builder.setView(binding.getRoot()); - builder.setPositiveButton(R.string.choose_participants, (dialog, which) -> mListener.onCreateDialogPositiveClick(binding.account, binding.subject.getText().toString())); + builder.setPositiveButton(R.string.choose_participants, (dialog, which) -> mListener.onCreateDialogPositiveClick(binding.account, binding.groupChatName.getText().toString().trim())); builder.setNegativeButton(R.string.cancel, null); + DelayedHintHelper.setHint(R.string.providing_a_name_is_optional, binding.groupChatName); return builder.create(); } |