Skip to content

Commit a3dabd2

Browse files
Merge branch 'release/5.252.0'
2 parents 4d4ed8d + 0196052 commit a3dabd2

File tree

102 files changed

+8202
-2245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+8202
-2245
lines changed

.github/workflows/release_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
if: always()
141141
run: |
142142
echo "Console URL: ${{ steps.release-tests.outputs.MAESTRO_CLOUD_CONSOLE_URL }}"
143-
echo "Flow Results (JSON): ${{ steps.release-tests.outputs.MAESTRO_CLOUD_FLOW_RESULTS }}"
143+
echo 'Flow Results (JSON): ${{ steps.release-tests.outputs.MAESTRO_CLOUD_FLOW_RESULTS }}'
144144
echo "Release Tests Step Conclusion: ${{ steps.release-tests.conclusion }}" # From Maestro action itself
145145
echo "Analyzed Flow Summary Status: ${{ steps.analyze-flow-results.outputs.flow_summary_status }}" # From our script
146146

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ captures/
4646
!.idea/copyright/
4747
.idea/workspace.xml
4848

49+
# VSCode
50+
.vscode/*
51+
4952
# Keystore files
5053
*.jks
5154

.maestro/duckplayer/always_youtube_duckplayer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: com.duckduckgo.mobile.android
2+
androidWebViewHierarchy: devtools
23
name: "DuckPlayer: Always > YouTube > Duck Player"
34
tags:
45
- duckplayer

.maestro/duckplayer/common/load_youtube_video.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
12
appId: com.duckduckgo.mobile.android
3+
androidWebViewHierarchy: devtools
24
---
35
# Navigate to a YouTube video
46
- tapOn:

.maestro/duckplayer/never_youtube.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
appId: com.duckduckgo.mobile.android
2+
androidWebViewHierarchy: devtools
23
name: "DuckPlayer: Never > YouTube"
34
tags:
45
- duckplayer

app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3839,6 +3839,8 @@ class BrowserTabViewModel @Inject constructor(
38393839
isActiveCustomTab: Boolean = false,
38403840
getWebViewUrl: () -> String?,
38413841
) {
3842+
logcat { "jsCallback $featureName $method $data" }
3843+
38423844
when (method) {
38433845
"webShare" ->
38443846
if (id != null && data != null) {

app/src/main/java/com/duckduckgo/app/tabs/ui/TabRendererExtension.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.duckduckgo.app.tabs.ui
1818

1919
import android.content.Context
20-
import android.net.Uri
20+
import androidx.core.net.toUri
2121
import com.duckduckgo.app.browser.R
2222
import com.duckduckgo.app.tabs.model.TabEntity
2323
import com.duckduckgo.app.tabs.model.isBlank
@@ -28,7 +28,7 @@ fun TabEntity.displayTitle(context: Context): String {
2828
return context.getString(R.string.newTabMenuItem)
2929
}
3030

31-
return title ?: Uri.parse(resolvedUrl()).host ?: ""
31+
return title ?: resolvedUrl().toUri().host?.take(TabSwitcherAdapter.TabSwitcherViewHolder.MAX_TITLE_LENGTH) ?: ""
3232
}
3333

3434
private fun TabEntity.resolvedUrl(): String {

app/src/main/java/com/duckduckgo/app/tabs/ui/TabSwitcherAdapter.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ class TabSwitcherAdapter(
469469
const val TRACKER_ANIMATION_TILE_INFO_PANEL = 2
470470

471471
const val EXTRA_CLOSE_BUTTON_TOUCH_AREA = 6 // dp
472+
473+
const val MAX_TITLE_LENGTH = 50
472474
}
473475

474476
interface TabViewHolder {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
android:id="@+id/tabUnread"
4545
android:layout_width="9dp"
4646
android:layout_height="9dp"
47-
android:elevation="30dp"
4847
android:importantForAccessibility="no"
4948
android:src="@drawable/tab_unread_indicator"
5049
app:layout_constraintCircle="@id/favicon"
@@ -78,14 +77,15 @@
7877

7978
<com.duckduckgo.common.ui.view.text.DaxTextView
8079
android:id="@+id/title"
81-
android:layout_width="wrap_content"
80+
android:layout_width="0dp"
8281
android:layout_height="wrap_content"
8382
android:ellipsize="end"
8483
android:lines="1"
8584
android:maxLines="1"
8685
android:textIsSelectable="false"
8786
android:layout_marginStart="@dimen/keyline_2"
8887
android:layout_marginEnd="6dp"
88+
android:breakStrategy="simple"
8989
app:layout_constrainedWidth="true"
9090
app:layout_constraintEnd_toStartOf="@+id/selectionIndicator"
9191
app:layout_constraintStart_toEndOf="@id/favicon"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
android:layout_height="9dp"
4949
android:layout_marginEnd="2dp"
5050
android:layout_marginBottom="2dp"
51-
android:elevation="30dp"
5251
android:importantForAccessibility="no"
5352
android:src="@drawable/tab_unread_indicator"
5453
app:layout_constraintCircle="@id/favicon"
@@ -91,6 +90,7 @@
9190
android:ellipsize="end"
9291
android:lines="1"
9392
android:textIsSelectable="false"
93+
android:breakStrategy="simple"
9494
app:layout_constraintEnd_toStartOf="@id/selectionIndicator"
9595
app:layout_constraintStart_toEndOf="@id/favicon"
9696
app:layout_constraintTop_toTopOf="parent"

0 commit comments

Comments
 (0)