Skip to content

Commit a927677

Browse files
mcararervandermeulen
authored andcommitted
Bug 1990267 - Replace ContentAlpha.medium with a constant value r=android-reviewers,avirvara
The `ContentAlpha.medium` constant from `androidx.compose.material` has been replaced with its literal value `0.6f` in `SearchOverlay.kt`. Differential Revision: https://phabricator.services.mozilla.com/D265842
1 parent 7d38ad4 commit a927677

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

mobile/android/focus-android/app/lint-baseline.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,6 @@
166166
column="8"/>
167167
</issue>
168168

169-
<issue
170-
id="UsingMaterialAndMaterial3Libraries"
171-
message="Using a material import while also using the material3 library"
172-
errorLine1="import androidx.compose.material.ContentAlpha"
173-
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
174-
<location
175-
file="src/main/java/org/mozilla/focus/searchsuggestions/ui/SearchOverlay.kt"
176-
line="10"
177-
column="8"/>
178-
</issue>
179-
180169
<issue
181170
id="DataExtractionRules"
182171
message="The attribute `android:allowBackup` is deprecated from Android 12 and higher and may be removed in future versions. Consider adding the attribute `android:dataExtractionRules` specifying an `@xml` resource which configures cloud backups and device transfers on Android 12 and higher."

mobile/android/focus-android/app/src/main/java/org/mozilla/focus/searchsuggestions/ui/SearchOverlay.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package org.mozilla.focus.searchsuggestions.ui
77
import androidx.appcompat.content.res.AppCompatResources
88
import androidx.compose.foundation.background
99
import androidx.compose.foundation.layout.Column
10-
import androidx.compose.material.ContentAlpha
1110
import androidx.compose.runtime.Composable
1211
import androidx.compose.runtime.livedata.observeAsState
1312
import androidx.compose.runtime.remember
@@ -120,7 +119,7 @@ private fun SearchSuggestions(
120119
background = focusColors.surface,
121120
title = focusColors.onBackground,
122121
description = focusColors.onBackground.copy(
123-
alpha = ContentAlpha.medium,
122+
alpha = 0.6f,
124123
),
125124
autocompleteIcon = focusColors.onSurface,
126125
groupTitle = focusColors.onBackground,

0 commit comments

Comments
 (0)