diff options
Diffstat (limited to 'mobile/android/android-components/components/browser/menu')
8 files changed, 59 insertions, 20 deletions
diff --git a/mobile/android/android-components/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/CustomTooltip.kt b/mobile/android/android-components/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/CustomTooltip.kt index 9e7ce8b674..6f83c1ffd9 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/CustomTooltip.kt +++ b/mobile/android/android-components/components/browser/menu/src/main/java/mozilla/components/browser/menu/item/CustomTooltip.kt @@ -14,7 +14,6 @@ import android.view.WindowManager import android.widget.LinearLayout import android.widget.PopupWindow import android.widget.TextView -import androidx.core.view.ViewCompat import androidx.core.widget.PopupWindowCompat import mozilla.components.browser.menu.R @@ -34,7 +33,7 @@ internal class CustomTooltip private constructor( } override fun onLongClick(view: View): Boolean { - if (ViewCompat.isAttachedToWindow(anchor)) { + if (anchor.isAttachedToWindow()) { show() anchor.addOnAttachStateChangeListener(this) } diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-be/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-be/strings.xml index f3b3bb1755..9edc4724a9 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-be/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-be/strings.xml @@ -10,6 +10,12 @@ <string name="mozac_browser_menu_extensions">Пашырэнні</string> <!-- Label for add-ons sub menu item for add-ons manager --> <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Менеджар дадаткаў</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Менеджар пашырэнняў</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Перайсці ўверх</string> - </resources> + <!-- Content description for the action bar "up" button of the add-ons sub menu item --> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Дадаткі, перайсці ўніз</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Пашырэнні, перайсці ўверх</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-br/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-br/strings.xml index 548cbd7785..f8e14c773d 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-br/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-br/strings.xml @@ -14,4 +14,8 @@ <string name="mozac_browser_menu_extensions_manager">Merañ an askouezhioù</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Adpignat</string> - </resources> + <!-- Content description for the action bar "up" button of the add-ons sub menu item --> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Enlugelladoù, pignat</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Askouezhioù, pignat</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-cak/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-cak/strings.xml index 7ccb1be616..7623a1f39f 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-cak/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-cak/strings.xml @@ -5,11 +5,17 @@ <!-- Content description (not visible, for screen readers etc.): Indicates the overflow menu has a highlight --> <string name="mozac_browser_menu_highlighted">Ya\'on ruq\'ij</string> <!-- Label for add-ons submenu section --> - <string name="mozac_browser_menu_addons">Taq tz\'aqat</string> + <string name="mozac_browser_menu_addons" moz:removedIn="126" tools:ignore="UnusedResources">Taq tz\'aqat</string> + <!-- Label for extensions submenu section --> + <string name="mozac_browser_menu_extensions">Taq k\'amal</string> <!-- Label for add-ons sub menu item for add-ons manager --> - <string name="mozac_browser_menu_addons_manager">Kinuk\'samajel taq Tz\'aqat</string> + <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Kinuk\'samajel taq Tz\'aqat</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Runuk\'samajel taq K\'amal</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Tib\'an okem ajsik</string> <!-- Content description for the action bar "up" button of the add-ons sub menu item --> - <string name="mozac_browser_menu_addons_description">Taq tz\'aqat, tijote\' chi rokem</string> - </resources> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Taq tz\'aqat, tijote\' chi rokem</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Taq k\'amal, tok q\'anij</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-eo/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-eo/strings.xml index 63b30a2150..1ca46d5302 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-eo/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-eo/strings.xml @@ -5,11 +5,17 @@ <!-- Content description (not visible, for screen readers etc.): Indicates the overflow menu has a highlight --> <string name="mozac_browser_menu_highlighted">Elstarigitaj</string> <!-- Label for add-ons submenu section --> - <string name="mozac_browser_menu_addons">Aldonaĵoj</string> + <string name="mozac_browser_menu_addons" moz:removedIn="126" tools:ignore="UnusedResources">Aldonaĵoj</string> + <!-- Label for extensions submenu section --> + <string name="mozac_browser_menu_extensions">Etendaĵoj</string> <!-- Label for add-ons sub menu item for add-ons manager --> - <string name="mozac_browser_menu_addons_manager">Administrilo de aldonaĵoj</string> + <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Administrilo de aldonaĵoj</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Administranto de etendaĵoj</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Iri supren</string> <!-- Content description for the action bar "up" button of the add-ons sub menu item --> - <string name="mozac_browser_menu_addons_description">Aldonaĵoj, supren</string> - </resources> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Aldonaĵoj, supren</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Etendaĵoj, supren</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-eu/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-eu/strings.xml index 53f1a556a3..b69e874c01 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-eu/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-eu/strings.xml @@ -5,11 +5,17 @@ <!-- Content description (not visible, for screen readers etc.): Indicates the overflow menu has a highlight --> <string name="mozac_browser_menu_highlighted">Nabarmendua</string> <!-- Label for add-ons submenu section --> - <string name="mozac_browser_menu_addons">Gehigarriak</string> + <string name="mozac_browser_menu_addons" moz:removedIn="126" tools:ignore="UnusedResources">Gehigarriak</string> + <!-- Label for extensions submenu section --> + <string name="mozac_browser_menu_extensions">Hedapenak</string> <!-- Label for add-ons sub menu item for add-ons manager --> - <string name="mozac_browser_menu_addons_manager">Gehigarrien kudeatzailea</string> + <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Gehigarrien kudeatzailea</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Hedapenen kudeatzailea</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Nabigatu gora</string> <!-- Content description for the action bar "up" button of the add-ons sub menu item --> - <string name="mozac_browser_menu_addons_description">Gehigarriak, nabigatu gora</string> - </resources> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Gehigarriak, nabigatu gora</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Hedapenak, nabigatu gora</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-kab/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-kab/strings.xml index f36a1014b1..58d8809a2c 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-kab/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-kab/strings.xml @@ -10,6 +10,12 @@ <string name="mozac_browser_menu_extensions">Isiɣzaf</string> <!-- Label for add-ons sub menu item for add-ons manager --> <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Amsefrak n izegrar</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Amsefrak n yisiɣzaf</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Inig d asawen</string> - </resources> + <!-- Content description for the action bar "up" button of the add-ons sub menu item --> + <string name="mozac_browser_menu_addons_description" moz:removedIn="126" tools:ignore="UnusedResources">Izegrar niḍen, ulin-d</string> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Isiɣzaf niḍen, ulin-d</string> +</resources> diff --git a/mobile/android/android-components/components/browser/menu/src/main/res/values-sc/strings.xml b/mobile/android/android-components/components/browser/menu/src/main/res/values-sc/strings.xml index 4fd82314b3..0a94a4fc21 100644 --- a/mobile/android/android-components/components/browser/menu/src/main/res/values-sc/strings.xml +++ b/mobile/android/android-components/components/browser/menu/src/main/res/values-sc/strings.xml @@ -5,9 +5,15 @@ <!-- Content description (not visible, for screen readers etc.): Indicates the overflow menu has a highlight --> <string name="mozac_browser_menu_highlighted">In evidèntzia</string> <!-- Label for add-ons submenu section --> - <string name="mozac_browser_menu_addons">Cumplementos</string> + <string name="mozac_browser_menu_addons" moz:removedIn="126" tools:ignore="UnusedResources">Cumplementos</string> + <!-- Label for extensions submenu section --> + <string name="mozac_browser_menu_extensions">Estensiones</string> <!-- Label for add-ons sub menu item for add-ons manager --> - <string name="mozac_browser_menu_addons_manager">Gestore de cumplementos</string> + <string name="mozac_browser_menu_addons_manager" moz:removedIn="126" tools:ignore="UnusedResources">Gestore de cumplementos</string> + <!-- Label for extensions sub menu item for extensions manager --> + <string name="mozac_browser_menu_extensions_manager">Gestore de estensiones</string> <!-- Content description for the action bar "up" button --> <string name="action_bar_up_description">Nàviga in artu</string> - </resources> + <!-- Content description for the action bar "up" button of the extensions sub menu item --> + <string name="mozac_browser_menu_extensions_content_description">Estensiones, torra a coa</string> +</resources> |