Commit 4ee1429f authored by Mugurell's avatar Mugurell Committed by plingurar@mozilla.com
Browse files

Bug 2020810 - part 1 - Move ToolbarGestureHandler to a new toolbar/gestures...

Bug 2020810 - part 1 - Move ToolbarGestureHandler to a new toolbar/gestures package r=android-reviewers,skhan

We'd have one more toolbar gesture handler for the swip up/down gesture and
would be nice to have them both in the same package.

Differential Revision: https://phabricator.services.mozilla.com/D286666
parent 45b617c3
Loading
Loading
Loading
Loading
+1 −0
Changes for mobile/android/fenix/app/src/main/java/org/mozilla/fenix/browser/BrowserFragment.kt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ import org.mozilla.fenix.components.toolbar.BrowserToolbarComposable
import org.mozilla.fenix.components.toolbar.BrowserToolbarView
import org.mozilla.fenix.components.toolbar.FenixBrowserToolbarView
import org.mozilla.fenix.components.toolbar.ToolbarMenu
import org.mozilla.fenix.components.toolbar.gestures.ToolbarGestureHandler
import org.mozilla.fenix.components.toolbar.ui.createShareBrowserAction
import org.mozilla.fenix.compose.snackbar.Snackbar
import org.mozilla.fenix.compose.snackbar.SnackbarState
+3 −1
Changes for mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/gestures/ToolbarGestureHandler.kt: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.mozilla.fenix.browser
package org.mozilla.fenix.components.toolbar.gestures

import android.animation.Animator
import android.animation.AnimatorListenerAdapter
@@ -31,6 +31,8 @@ import mozilla.components.support.utils.ext.mandatorySystemGestureInsets
import mozilla.telemetry.glean.private.NoExtras
import org.mozilla.fenix.GleanMetrics.Events
import org.mozilla.fenix.R
import org.mozilla.fenix.browser.SwipeGestureListener
import org.mozilla.fenix.browser.TabPreview
import org.mozilla.fenix.ext.getRectWithScreenLocation
import org.mozilla.fenix.ext.maxActiveTime
import org.mozilla.fenix.ext.pixelSizeFor