Bug 1964753 - Update AGP to version 8.10.0. r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D248090
This commit is contained in:
committed by
rvandermeulen@mozilla.com
parent
5ee0ea2cba
commit
1c85ce01d2
@@ -1,7 +1,7 @@
|
|||||||
[versions]
|
[versions]
|
||||||
# AGP
|
# AGP
|
||||||
android-gradle-plugin = "8.9.2" # Keep lint version in sync
|
android-gradle-plugin = "8.10.0" # Keep lint version in sync
|
||||||
lint = "31.9.2"
|
lint = "31.10.0"
|
||||||
|
|
||||||
python-envs-plugin = "0.0.31"
|
python-envs-plugin = "0.0.31"
|
||||||
maven-ant-tasks = "2.1.3"
|
maven-ant-tasks = "2.1.3"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import android.view.Gravity
|
|||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.LinearLayout
|
import android.widget.LinearLayout
|
||||||
import androidx.annotation.VisibleForTesting
|
import androidx.annotation.VisibleForTesting
|
||||||
|
import androidx.core.content.withStyledAttributes
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import mozilla.components.browser.toolbar.R
|
import mozilla.components.browser.toolbar.R
|
||||||
import mozilla.components.concept.toolbar.Toolbar
|
import mozilla.components.concept.toolbar.Toolbar
|
||||||
@@ -36,17 +37,15 @@ internal class ActionContainer @JvmOverloads constructor(
|
|||||||
orientation = HORIZONTAL
|
orientation = HORIZONTAL
|
||||||
visibility = View.GONE
|
visibility = View.GONE
|
||||||
|
|
||||||
context.obtainStyledAttributes(
|
context.withStyledAttributes(
|
||||||
attrs,
|
attrs,
|
||||||
R.styleable.ActionContainer,
|
R.styleable.ActionContainer,
|
||||||
defStyleAttr,
|
defStyleAttr,
|
||||||
0,
|
0,
|
||||||
).run {
|
) {
|
||||||
actionSize = attrs?.let {
|
actionSize = attrs?.let {
|
||||||
getDimensionPixelSize(R.styleable.ActionContainer_actionContainerItemSize, 0)
|
getDimensionPixelSize(R.styleable.ActionContainer_actionContainerItemSize, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
recycle()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ class AddonsManagerAdapter(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("RecyclerView")
|
||||||
override fun onBindViewHolder(holder: CustomViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: CustomViewHolder, position: Int) {
|
||||||
val item = getItem(position)
|
val item = getItem(position)
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
package org.mozilla.fenix.components
|
package org.mozilla.fenix.components
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint
|
||||||
import android.app.Notification
|
import android.app.Notification
|
||||||
import android.app.NotificationChannel
|
import android.app.NotificationChannel
|
||||||
import android.app.NotificationManager
|
import android.app.NotificationManager
|
||||||
@@ -64,6 +65,7 @@ class NotificationManager(private val context: Context) {
|
|||||||
* @param context The Android application context.
|
* @param context The Android application context.
|
||||||
* @param count The number of tabs that were closed.
|
* @param count The number of tabs that were closed.
|
||||||
*/
|
*/
|
||||||
|
@SuppressLint("MissingPermission", "NotifyUsage")
|
||||||
fun showSyncedTabsClosed(context: Context, count: Int) {
|
fun showSyncedTabsClosed(context: Context, count: Int) {
|
||||||
if (count <= 0) {
|
if (count <= 0) {
|
||||||
return
|
return
|
||||||
@@ -125,6 +127,14 @@ class NotificationManager(private val context: Context) {
|
|||||||
notificationManagerCompat.notify(TABS_CLOSED_TAG, notificationId, notification)
|
notificationManagerCompat.notify(TABS_CLOSED_TAG, notificationId, notification)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays a notification for each valid tab received from a device.
|
||||||
|
*
|
||||||
|
* @param context The Android application context.
|
||||||
|
* @param device The device from which the tabs were received, or `null` if unavailable.
|
||||||
|
* @param tabs A list of tabs to be displayed.
|
||||||
|
*/
|
||||||
|
@SuppressLint("MissingPermission", "NotifyUsage")
|
||||||
fun showReceivedTabs(context: Context, device: Device?, tabs: List<TabData>) {
|
fun showReceivedTabs(context: Context, device: Device?, tabs: List<TabData>) {
|
||||||
// In the future, experiment with displaying multiple tabs from the same device as as Notification Groups.
|
// In the future, experiment with displaying multiple tabs from the same device as as Notification Groups.
|
||||||
// For now, a single notification per tab received will suffice.
|
// For now, a single notification per tab received will suffice.
|
||||||
|
|||||||
@@ -797,7 +797,6 @@
|
|||||||
<ID>UndocumentedPublicFunction:NavController.kt$fun NavController.alreadyOnDestination(@IdRes destId: Int?): Boolean</ID>
|
<ID>UndocumentedPublicFunction:NavController.kt$fun NavController.alreadyOnDestination(@IdRes destId: Int?): Boolean</ID>
|
||||||
<ID>UndocumentedPublicFunction:NavController.kt$fun NavController.navigateSafe( @IdRes resId: Int, directions: NavDirections, )</ID>
|
<ID>UndocumentedPublicFunction:NavController.kt$fun NavController.navigateSafe( @IdRes resId: Int, directions: NavDirections, )</ID>
|
||||||
<ID>UndocumentedPublicFunction:NimbusBranchesView.kt$NimbusBranchesView$fun update(state: NimbusBranchesState)</ID>
|
<ID>UndocumentedPublicFunction:NimbusBranchesView.kt$NimbusBranchesView$fun update(state: NimbusBranchesState)</ID>
|
||||||
<ID>UndocumentedPublicFunction:NotificationManager.kt$NotificationManager$fun showReceivedTabs(context: Context, device: Device?, tabs: List<TabData>)</ID>
|
|
||||||
<ID>UndocumentedPublicFunction:PagerIndicator.kt$fun Context.dpToPx(value: Float): Int</ID>
|
<ID>UndocumentedPublicFunction:PagerIndicator.kt$fun Context.dpToPx(value: Float): Int</ID>
|
||||||
<ID>UndocumentedPublicFunction:PagerIndicator.kt$fun View.dpToPx(value: Float): Int</ID>
|
<ID>UndocumentedPublicFunction:PagerIndicator.kt$fun View.dpToPx(value: Float): Int</ID>
|
||||||
<ID>UndocumentedPublicFunction:PasswordRevealHelper.kt$fun togglePasswordReveal(passwordText: TextView, revealPasswordButton: ImageButton)</ID>
|
<ID>UndocumentedPublicFunction:PasswordRevealHelper.kt$fun togglePasswordReveal(passwordText: TextView, revealPasswordButton: ImageButton)</ID>
|
||||||
|
|||||||
Reference in New Issue
Block a user