Skip to content

Commit 356568e

Browse files
committed
Update search widget XML layouts to ignore deprecated attributes and adjust test cases for grid calculations.
1 parent b8f1aff commit 356568e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/src/androidTest/java/com/duckduckgo/widget/SearchAndFavoritesGridCalculatorKtTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class SearchAndFavoritesGridCalculatorKtTest {
9090
return arrayOf(
9191
TestCase(1, 100),
9292
TestCase(1, 172),
93-
TestCase(2, 270),
94-
TestCase(3, 368),
93+
TestCase(1, 270),
94+
TestCase(2, 368),
9595
TestCase(3, 465),
96-
TestCase(4, 466),
96+
TestCase(3, 466),
9797
TestCase(4, 564),
9898
TestCase(4, 662),
9999
TestCase(4, 760),

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
style="@style/Widget.DuckDuckGo.SearchWidgetSearchBarContainer"
2121
android:background="@drawable/search_widget_background_black"
2222
android:gravity="center_vertical"
23-
android:orientation="horizontal">
23+
android:orientation="horizontal"
24+
tools:ignore="DeprecatedWidgetInXml, InvalidColorAttribute">
2425

2526
<ImageView
2627
android:id="@+id/logo"

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
style="@style/Widget.DuckDuckGo.SearchWidgetSearchBarContainer"
2121
android:background="@drawable/search_widget_background_white"
2222
android:gravity="center_vertical"
23-
android:orientation="horizontal">
23+
android:orientation="horizontal"
24+
tools:ignore="DeprecatedWidgetInXml, InvalidColorAttribute">
2425

2526
<ImageView
2627
android:id="@+id/logo"

0 commit comments

Comments
 (0)