From 403c1514a18d848a55efc18326604951dfb866ad Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Tue, 16 Apr 2019 09:34:44 -0700 Subject: [PATCH] [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/1644 - Correct progress bar gravity --- .../org/mozilla/fenix/components/toolbar/ToolbarUIView.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt b/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt index 2b09519857..8783497f60 100644 --- a/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt +++ b/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt @@ -5,7 +5,6 @@ package org.mozilla.fenix.components.toolbar import android.graphics.drawable.BitmapDrawable -import android.view.Gravity import android.view.LayoutInflater import android.view.ViewGroup import android.widget.ImageView @@ -62,7 +61,7 @@ class ToolbarUIView( val isCustomTabSession = (session?.isCustomTabSession() == true) urlBoxView = if (isCustomTabSession) { null } else urlBackground - progressBarGravity = if (isCustomTabSession) { Gravity.TOP } else Gravity.BOTTOM + progressBarGravity = if (isCustomTabSession) { PROGRESS_BOTTOM } else PROGRESS_TOP textColor = ContextCompat.getColor(context, R.color.photonGrey30) @@ -173,6 +172,8 @@ class ToolbarUIView( } companion object { + private const val PROGRESS_BOTTOM = 0 + private const val PROGRESS_TOP = 1 const val browserActionMarginDp = 8 } }