зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 72a77da6a4d9 (bug 1883741) for causing android toolbar failures/bustages. CLOSED TREE
This commit is contained in:
Родитель
967620e058
Коммит
2f6b638988
|
@ -349,13 +349,6 @@ class BrowserToolbar @JvmOverloads constructor(
|
||||||
display.showMenuButton()
|
display.showMenuButton()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the horizontal padding in display mode.
|
|
||||||
*/
|
|
||||||
override fun setDisplayHorizontalPadding(horizontalPadding: Int) {
|
|
||||||
display.setHorizontalPadding(horizontalPadding)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides the page action separator in display/edit mode.
|
* Hides the page action separator in display/edit mode.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -668,13 +668,6 @@ class DisplayToolbar internal constructor(
|
||||||
views.menu.setShouldBeHidden(false)
|
views.menu.setShouldBeHidden(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the horizontal padding.
|
|
||||||
*/
|
|
||||||
fun setHorizontalPadding(horizontalPadding: Int) {
|
|
||||||
rootView.setPadding(horizontalPadding, 0, horizontalPadding, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides the page action separator in display mode.
|
* Hides the page action separator in display mode.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -596,21 +596,6 @@ class BrowserToolbarTest {
|
||||||
verify(edit).hidePageActionSeparator()
|
verify(edit).hidePageActionSeparator()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
fun `WHEN setDisplayHorizontalPadding is sent to BrowserToolbar THEN it will be forwarded to the DisplayToolbar`() {
|
|
||||||
val toolbar = BrowserToolbar(testContext)
|
|
||||||
|
|
||||||
val display: DisplayToolbar = mock()
|
|
||||||
toolbar.display = display
|
|
||||||
toolbar.edit = mock()
|
|
||||||
|
|
||||||
toolbar.setDisplayHorizontalPadding(123)
|
|
||||||
verify(display).setHorizontalPadding(123)
|
|
||||||
|
|
||||||
toolbar.setDisplayHorizontalPadding(0)
|
|
||||||
verify(display).setHorizontalPadding(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `cast to view`() {
|
fun `cast to view`() {
|
||||||
// Given
|
// Given
|
||||||
|
|
|
@ -183,11 +183,6 @@ interface Toolbar : ScrollableToolbar {
|
||||||
*/
|
*/
|
||||||
fun showMenuButton()
|
fun showMenuButton()
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the horizontal padding in display mode.
|
|
||||||
*/
|
|
||||||
fun setDisplayHorizontalPadding(horizontalPadding: Int)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hides the page action separator in display mode.
|
* Hides the page action separator in display mode.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -9,16 +9,13 @@ permalink: /changelog/
|
||||||
* **feature-downloads**
|
* **feature-downloads**
|
||||||
* Content intent of completed `DownloadNotification` now uses a `PendingIntent` which launches an `Activity` directly, see [Bug 1885167](https://bugzilla.mozilla.org/show_bug.cgi?id=1885167).
|
* Content intent of completed `DownloadNotification` now uses a `PendingIntent` which launches an `Activity` directly, see [Bug 1885167](https://bugzilla.mozilla.org/show_bug.cgi?id=1885167).
|
||||||
|
|
||||||
* **concept-toolbar**
|
|
||||||
* Added the `setDisplayHorizontalPadding` method, allowing the caller to dynamically adjust the horizontal padding for the display toolbar.
|
|
||||||
|
|
||||||
# 125.0
|
# 125.0
|
||||||
* [Commits](https://github.com/mozilla-mobile/firefox-android/compare/releases_v124..releases_v125)
|
* [Commits](https://github.com/mozilla-mobile/firefox-android/compare/releases_v124..releases_v125)
|
||||||
* [Dependencies](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/plugins/dependencies/src/main/java/DependenciesPlugin.kt)
|
* [Dependencies](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/plugins/dependencies/src/main/java/DependenciesPlugin.kt)
|
||||||
* [Gecko](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/plugins/dependencies/src/main/java/Gecko.kt)
|
* [Gecko](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/plugins/dependencies/src/main/java/Gecko.kt)
|
||||||
* [Configuration](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/.config.yml)
|
* [Configuration](https://github.com/mozilla-mobile/firefox-android/blob/releases_v125/android-components/.config.yml)
|
||||||
|
|
||||||
* **concept-toolbar**:
|
* **concept-toolabar**:
|
||||||
* Added a new method for `ActionButton` to update the contentDescription and the iconTint, see [Bug 1875817](https://bugzilla.mozilla.org/show_bug.cgi?id=1875817).
|
* Added a new method for `ActionButton` to update the contentDescription and the iconTint, see [Bug 1875817](https://bugzilla.mozilla.org/show_bug.cgi?id=1875817).
|
||||||
|
|
||||||
* **concept-engine**
|
* **concept-engine**
|
||||||
|
|
|
@ -124,11 +124,6 @@ class DefaultToolbarIntegration(
|
||||||
|
|
||||||
if (isNavBarEnabled) {
|
if (isNavBarEnabled) {
|
||||||
toolbar.hideMenuButton()
|
toolbar.hideMenuButton()
|
||||||
toolbar.setDisplayHorizontalPadding(
|
|
||||||
context.resources.getDimensionPixelSize(
|
|
||||||
R.dimen.browser_fragment_display_toolbar_padding,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
val tabCounterMenu = FenixTabCounterMenu(
|
val tabCounterMenu = FenixTabCounterMenu(
|
||||||
context = context,
|
context = context,
|
||||||
|
|
|
@ -90,8 +90,6 @@
|
||||||
<dimen name="browser_fragment_toolbar_elevation">16dp</dimen>
|
<dimen name="browser_fragment_toolbar_elevation">16dp</dimen>
|
||||||
<!-- The download dialogs are shown above the toolbar so they need a bigger elevation. -->
|
<!-- The download dialogs are shown above the toolbar so they need a bigger elevation. -->
|
||||||
<dimen name="browser_fragment_download_dialog_elevation">17dp</dimen>
|
<dimen name="browser_fragment_download_dialog_elevation">17dp</dimen>
|
||||||
<!-- The size of padding for the display toolbar. -->
|
|
||||||
<dimen name="browser_fragment_display_toolbar_padding">8dp</dimen>
|
|
||||||
|
|
||||||
<!-- Search Fragment -->
|
<!-- Search Fragment -->
|
||||||
<dimen name="search_fragment_clipboard_item_height">56dp</dimen>
|
<dimen name="search_fragment_clipboard_item_height">56dp</dimen>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче