-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New App Layout: Adds New Chat Bottom Sheet #6801
Conversation
android:paddingHorizontal="16dp" | ||
android:paddingVertical="16dp" | ||
android:text="@string/start_chat" | ||
android:textAppearance="@style/TextAppearance.Vector.Body" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you apply both style and
textAppearance`. We should only apply style which fits by text size and override other params if necessary
android:paddingHorizontal="16dp" | ||
android:paddingVertical="16dp" | ||
android:text="@string/create_room" | ||
android:textAppearance="@style/TextAppearance.Vector.Body" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
} | ||
|
||
binding.createRoom.setOnClickListener { | ||
navigator.openCreateRoom(requireActivity(), "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initialName
param of openCreateRoom
has default value, so you can just skip it
…hat-bottom-sheet # Conflicts: # vector/src/main/res/values/strings.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
SonarCloud Quality Gate failed. |
@@ -166,7 +168,7 @@ class HomeRoomListFragment @Inject constructor( | |||
showFABs() | |||
|
|||
views.newLayoutCreateChatButton.setOnClickListener { | |||
// Click action for create chat modal goes here (Issue #6717) | |||
newChatBottomSheet.show(requireActivity().supportFragmentManager, NewChatBottomSheet.TAG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Wdyt about creating the bottom sheet instance here instead of a class variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't prefer doing it this way because we're creating new instances of the bottom sheet every time and adding it to memory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Type of change
Content
Motivation and context
Closes #6717
This is the new way we differentiate between a new DM or a new create room chat when using the FAB on the main screen
Screenshots / GIFs
Tests
Tested devices
Checklist