Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,18 @@ class WebExtensionPromptFeature(
scope = store.flowScoped(dispatcher = mainDispatcher) { flow ->
flow
.mapNotNull { state ->
state.webExtensionPromptRequest
}.distinctUntilChanged()
state.webExtensionPromptRequest
}.distinctUntilChanged()
.collect { promptRequest ->
when (promptRequest) {
is WebExtensionPromptRequest.AfterInstallation -> {
if (promptRequest is WebExtensionPromptRequest.AfterInstallation) {
Copy link
Copy Markdown
Contributor Author

@Mugurell Mugurell May 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replaced the exhaustive when check with a simpler if check here
Since there is no immediate plan to support WebExtensionPromptRequest.InstallationRequested in RB also.

Future WebExtensionPromptRequest changes will need to be handled in the below handlePermissions so new changes will require thinking about how to handle them in RB so this change will not lead to ignoring all future updates.

handleAfterInstallationRequest(promptRequest)
}

is WebExtensionPromptRequest.BeforeInstallation.InstallationFailed -> {
if (promptRequest is WebExtensionPromptRequest.BeforeInstallation.InstallationFailed) {
handleBeforeInstallationRequest(promptRequest)
consumePromptRequest()
}
}
}
}
tryToReAttachButtonHandlersToPreviousDialog()
}
Expand Down Expand Up @@ -241,6 +239,10 @@ class WebExtensionPromptFeature(
promptRequest.onConfirm(response)
}

is WebExtensionPromptRequest.InstallationRequested -> {
// opt-out
}

is WebExtensionPromptRequest.AfterInstallation.PostInstallation -> {
// opt-out
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CustomTabsIntegration(
contentDescription = "Stop",
icon = DrawableMenuIcon(
context,
mozilla.components.ui.icons.R.drawable.mozac_ic_stop,
mozilla.components.ui.icons.R.drawable.mozac_ic_cross_24,
tint = tint,
),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ToolbarIntegration(
contentDescription = "Stop",
icon = DrawableMenuIcon(
context,
mozilla.components.ui.icons.R.drawable.mozac_ic_stop,
mozilla.components.ui.icons.R.drawable.mozac_ic_cross_24,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tint = tint,
),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:padding="16dp"
android:text="@string/mozac_feature_addons_settings"
android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_preferences"
app:drawableStartCompat="@drawable/mozac_ic_settings_24"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app:drawableTint="@color/icons" />

<TextView
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_browser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end|bottom"
android:src="@drawable/mozac_ic_font"
android:src="@drawable/mozac_ic_reader_view_24"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android:contentDescription="@string/reader_view_appearance_button"
android:visibility="gone"
android:layout_marginRight="16dp"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# Android Components
android-components = "152.0.20260513094209"
android-components = "152.0.20260518093736"

# AGP
android-gradle-plugin = "9.2.1"
Expand Down