When disabling elevation by setting topBarElevationShadowEnabled to false, this commit allows to re-enable it by setting the same property to true. Elevation was previously disabled by using setOutlineProvider(null), with ViewOutlineProvider being an Android 5.0+ object responsible for determining how views draw their outline. To allow re-enabling elevation, we keep our original ViewOutlineProvider and restore it when elevation is enabled again.
|
|
||
| 10 |
|
10 |
|
| 11 |
|
11 |
|
| 12 |
|
12 |
|
|
13 |
|
|
| 13 |
|
14 |
|
| 14 |
|
15 |
|
| 15 |
|
16 |
|
|
|
||
| 36 |
|
37 |
|
| 37 |
|
38 |
|
| 38 |
|
39 |
|
|
40 |
|
|
| 39 |
|
41 |
|
| 40 |
|
42 |
|
| 41 |
|
43 |
|
| 42 |
|
44 |
|
| 43 |
|
45 |
|
| 44 |
|
46 |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
| 45 |
|
50 |
|
| 46 |
|
51 |
|
| 47 |
|
52 |
|
|
|
||
| 167 |
|
172 |
|
| 168 |
|
173 |
|
| 169 |
|
174 |
|
| 170 |
|
|
|
| 171 |
|
|
|
| 172 |
|
|
|
|
175 |
|
|
| 173 |
|
176 |
|
| 174 |
|
177 |
|
| 175 |
|
178 |
|
| 176 |
|
179 |
|
| 177 |
|
|
|
|
180 |
|
|
| 178 |
|
181 |
|
| 179 |
|
182 |
|
| 180 |
|
|
|
|
183 |
|
|
| 181 |
|
184 |
|
| 182 |
|
|
|
|
185 |
|
|
| 183 |
|
186 |
|
| 184 |
|
187 |
|
| 185 |
|
188 |
|