-
Notifications
You must be signed in to change notification settings - Fork 754
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
Space Switching: Accordion-Style Bottom Sheet #6907
Conversation
) { | ||
val host = this | ||
newSpaceListHeaderItem { | ||
id("space_list_header") | ||
} |
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.
This is removed in another PR (#6877) so I didn't bother abstracting this
|
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
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.
Just small remarks, else LGTM!
|
||
override fun bind(holder: Holder) { | ||
super.bind(holder) | ||
holder.rootView.onClick(listener) | ||
holder.root.onClick(onSpaceSelectedListener) | ||
holder.root.setOnLongClickListener { onLongClickListener?.invoke(holder.root).let { true } } |
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.
.let { true }
is maybe not useful. it
is not used.
Having return true
is probably better.
android:src="@drawable/ic_arrow_right" | ||
android:visibility="visible" | ||
android:background="?selectableItemBackground" | ||
android:contentDescription="@string/a11y_expand_space_children" |
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.
contentDescription
has to be updated when the state is expanded.
SonarCloud Quality Gate failed. |
Type of change
Content
Changes the space sheet style back to accordion style as it is in the old app layout
Other not-so-obvious changes:
Motivation and context
Closes #6815
Screenshots / GIFs
Tests
Tested devices
Checklist