Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Fix add-ons permissions breaking change #15002

Merged
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 @@ -6,7 +6,6 @@ package org.mozilla.fenix.addons

import android.net.Uri
import android.view.View
import androidx.annotation.StringRes
import androidx.core.net.toUri
import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.android.extensions.LayoutContainer
Expand Down Expand Up @@ -40,10 +39,7 @@ class AddonPermissionsDetailsView(
private fun bindPermissions(addon: Addon) {
add_ons_permissions.apply {
layoutManager = LinearLayoutManager(context)
val sortedPermissions = addon.translatePermissions().map {
@StringRes val stringId = it
context.getString(stringId)
}.sorted()
val sortedPermissions = addon.translatePermissions(context).sorted()
adapter = AddonPermissionsAdapter(
sortedPermissions,
style = AddonPermissionsAdapter.Style(
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/AndroidComponents.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

object AndroidComponents {
const val VERSION = "59.0.20200916130055"
const val VERSION = "60.0.20200917130150"
}