mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 10:46:10 +00:00
Polish UX for groups v2 management.
This commit is contained in:
committed by
Greyson Parrelli
parent
558a8e4a14
commit
6fa2a0f411
@@ -11,11 +11,11 @@ import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.Switch;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.SwitchCompat;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
@@ -83,7 +83,7 @@ public class ManageGroupFragment extends Fragment {
|
||||
private TextView blockGroup;
|
||||
private TextView leaveGroup;
|
||||
private TextView addMembers;
|
||||
private Switch muteNotificationsSwitch;
|
||||
private SwitchCompat muteNotificationsSwitch;
|
||||
private View muteNotificationsRow;
|
||||
private TextView muteNotificationsUntilLabel;
|
||||
private TextView customNotificationsButton;
|
||||
@@ -254,6 +254,7 @@ public class ManageGroupFragment extends Fragment {
|
||||
viewModel.getCanAddMembers().observe(getViewLifecycleOwner(), canEdit -> addMembers.setVisibility(canEdit ? View.VISIBLE : View.GONE));
|
||||
|
||||
groupMemberList.setRecipientClickListener(recipient -> RecipientBottomSheetDialogFragment.create(recipient.getId(), groupId).show(requireFragmentManager(), "BOTTOM"));
|
||||
groupMemberList.setOverScrollMode(View.OVER_SCROLL_NEVER);
|
||||
|
||||
final CompoundButton.OnCheckedChangeListener muteSwitchListener = (buttonView, isChecked) -> {
|
||||
if (isChecked) {
|
||||
|
||||
@@ -12,11 +12,11 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.Switch;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.widget.SwitchCompat;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
import androidx.lifecycle.ViewModelProviders;
|
||||
@@ -32,11 +32,11 @@ public class CustomNotificationsDialogFragment extends DialogFragment {
|
||||
|
||||
private static final String ARG_GROUP_ID = "group_id";
|
||||
|
||||
private Switch customNotificationsSwitch;
|
||||
private View soundLabel;
|
||||
private TextView soundSelector;
|
||||
private View vibrateLabel;
|
||||
private Switch vibrateSwitch;
|
||||
private SwitchCompat customNotificationsSwitch;
|
||||
private View soundLabel;
|
||||
private TextView soundSelector;
|
||||
private View vibrateLabel;
|
||||
private SwitchCompat vibrateSwitch;
|
||||
|
||||
private CustomNotificationsViewModel viewModel;
|
||||
|
||||
|
||||
@@ -244,6 +244,7 @@ public class EditProfileFragment extends Fragment {
|
||||
|
||||
if (isEditingGroup) {
|
||||
givenName.setHint(R.string.EditProfileFragment__group_name);
|
||||
givenName.requestFocus();
|
||||
toolbar.setTitle(R.string.EditProfileFragment__edit_group_name_and_photo);
|
||||
preview.setVisibility(View.GONE);
|
||||
familyName.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user