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 743520a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 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>
2 changes: 1 addition & 1 deletion vector/src/main/res/layout/composer_rich_text_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<io.element.android.wysiwyg.EditorEditText
android:id="@+id/composerEditText"
style="@style/Widget.Vector.EditText.Composer.RichText"
style="@style/Widget.Vector.EditText.Composer.RichTextComposer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:nextFocusLeft="@id/composerEditText"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

<io.element.android.wysiwyg.EditorEditText
android:id="@+id/composerEditText"
style="@style/Widget.Vector.EditText.Composer.RichText"
style="@style/Widget.Vector.EditText.Composer.RichTextComposer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/room_message_placeholder"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<io.element.android.wysiwyg.EditorEditText
android:id="@+id/composerEditText"
style="@style/Widget.Vector.EditText.Composer.RichText"
style="@style/Widget.Vector.EditText.Composer.RichTextComposer"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/room_message_placeholder"
Expand Down
7 changes: 2 additions & 5 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,6 @@
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:src="@drawable/ic_composer_bold">
<!-- The contentDescription attr is populated programmatically. This is just to fix lint issues. -->

</ImageButton>
tools:src="@drawable/ic_composer_bold"
tools:ignore="ContentDescription" />

0 comments on commit 743520a

Please sign in to comment.