Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 4e22134

Browse files
committed
Fixes crash on pre-Q devices.
Change-Id: I6501bab8f3e21b12ce9656ddbe8e4bf90f21166d
1 parent 1f7de07 commit 4e22134

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

app/src/main/res/color/divider.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<selector xmlns:android="http://schemas.android.com/apk/res/android">
1616

1717
<item
18-
android:state_activated="true"
1918
android:alpha="0.20"
2019
android:color="?attr/colorOnSurface"/>
2120

app/src/main/res/drawable/divider.xml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212
or implied. See the License for the specific language governing permissions and limitations under
1313
the License.
1414
-->
15-
<inset
15+
<shape
1616
xmlns:android="http://schemas.android.com/apk/res/android"
17-
android:inset="@dimen/grid_2">
18-
<shape android:shape="rectangle">
19-
<solid android:color="#979797"/>
20-
<size android:height="1dp"/>
21-
</shape>
22-
</inset>
17+
android:shape="rectangle">
18+
<solid android:color="@color/divider"/>
19+
</shape>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright (c) 2019 Google Inc.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6+
in compliance with the License. You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software distributed under the License
11+
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12+
or implied. See the License for the specific language governing permissions and limitations under
13+
the License.
14+
-->
15+
<inset
16+
xmlns:android="http://schemas.android.com/apk/res/android"
17+
android:inset="@dimen/grid_2">
18+
<shape android:shape="rectangle">
19+
<solid android:color="@color/divider"/>
20+
<size android:height="@dimen/divider_height"/>
21+
</shape>
22+
</inset>

app/src/main/res/layout/fragment_learn.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
app:layout_constraintStart_toStartOf="parent"
136136
app:layout_constraintTop_toBottomOf="@id/description"
137137
app:layout_constraintEnd_toEndOf="parent"
138-
android:background="@drawable/divider"/>
138+
android:background="@drawable/inset_divider"/>
139139

140140
<TextView
141141
android:id="@+id/need"
@@ -276,7 +276,7 @@
276276
app:layout_constraintStart_toStartOf="parent"
277277
app:layout_constraintTop_toBottomOf="@id/playlist_title"
278278
app:layout_constraintEnd_toEndOf="parent"
279-
android:background="@color/divider"
279+
android:background="@drawable/divider"
280280
android:alpha="0"/>
281281

282282
<androidx.recyclerview.widget.RecyclerView

0 commit comments

Comments
 (0)