Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Oct 13, 2022
1 parent 6750f1f commit dce40c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library/ui-styles/src/main/res/values/styles_edit_text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<item name="android:textColor">?vctr_message_text_color</item>
</style>

<style name="Widget.Vector.EditText.Composer.RichText" parent="Widget.AppCompat.EditText">
<style name="Widget.Vector.EditText.Composer.RichTextComposer" parent="Widget.AppCompat.EditText">
<item name="android:background">@android:color/transparent</item>
<item name="android:inputType">textCapSentences|textMultiLine</item>
<item name="android:maxLines">12</item>
Expand Down
6 changes: 3 additions & 3 deletions vector/src/main/res/color/selector_rich_text_menu_icon.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="?attr/vctr_content_quinary" />
<item android:state_pressed="true" android:color="?attr/colorAccent" />
<item android:state_hovered="true" android:color="?attr/colorAccent" />
<item android:state_selected="true" android:color="?attr/colorAccent" />
<item android:state_pressed="true" android:color="?attr/colorSecondary" />
<item android:state_hovered="true" android:color="?attr/colorSecondary" />
<item android:state_selected="true" android:color="?attr/colorSecondary" />
<item android:color="?attr/vctr_content_tertiary" />
</selector>
3 changes: 1 addition & 2 deletions vector/src/main/res/layout/view_rich_text_menu_button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
android:layout_height="48dp"
android:layout_marginHorizontal="2dp"
android:background="@drawable/bg_rich_text_menu_button"
android:contentDescription="@string/rich_text_editor_format_bold"
app:tint="@color/selector_rich_text_menu_icon"
tools:contentDescription="@string/rich_text_editor_format_bold"
tools:src="@drawable/ic_composer_bold">
<!-- The contentDescription attr is populated programmatically. This is just to fix lint issues. -->

</ImageButton>

0 comments on commit dce40c9

Please sign in to comment.