Skip to content
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

[Rich text editor] Add plain text mode and new attachment UI #7459

Merged
merged 15 commits into from
Oct 26, 2022

Conversation

jonnyandrew
Copy link
Contributor

Combination of two changes rebased on resilience-rc.

See the original PRs:

@jonnyandrew jonnyandrew force-pushed the feat/PSU-780-plain-text-rebase-resilience-rc branch from 64e1447 to c5b2d46 Compare October 26, 2022 15:03
@jonnyandrew jonnyandrew force-pushed the feat/PSU-780-plain-text-rebase-resilience-rc branch from c5b2d46 to 2b7177b Compare October 26, 2022 15:42
@jonnyandrew jonnyandrew marked this pull request as ready for review October 26, 2022 15:44
@jmartinesp jmartinesp self-requested a review October 26, 2022 15:45
Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I already reviewed the PR for develop and I couldn't find any issues on the integration between full screen an plain text modes.

@@ -69,14 +63,14 @@ class AttachmentTypeSelectorView(
init {
contentView = inflater.inflate(R.layout.view_attachment_type_selector, null, false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
  • ⚠️ Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
  • ⚠️ Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)
  • ⚠️ Avoid passing null as the view root (needed to resolve layout parameters on the inflated layout's root element)

xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?colorSurface">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Possible overdraw: Root element paints background ?colorSurface with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)
  • ⚠️ Possible overdraw: Root element paints background ?colorSurface with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

17.6% 17.6% Coverage
0.0% 0.0% Duplication

@jmartinesp jmartinesp merged commit c776aae into resilience-rc Oct 26, 2022
@jmartinesp jmartinesp deleted the feat/PSU-780-plain-text-rebase-resilience-rc branch October 26, 2022 16:37
jmartinesp pushed a commit that referenced this pull request Nov 2, 2022
* Add new attachments selection dialog

* Add rounded corners to bottom sheet dialog.

Note these are currently only visible in the collapsed state.
- [Google issue](https://issuetracker.google.com/issues/144859239)
- [Rejected PR](material-components/material-components-android#437)
- [Github issue](material-components/material-components-android#1278)

* Add changelog entry

* Remove redundant call to superclass click listener

* Refactor to use view visibility helper

* Change redundant sealed class to interface

* Remove unused string

* Revert "Add rounded corners to bottom sheet dialog."

This reverts commit 17c43c9.

* Remove redundant view group

* Remove redundant `this`

* Update rich text editor to latest

* Update rich text editor version

* Allow toggling rich text in the new editor

* Persist the text formatting setting

* Add changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants