For #10848 - Fixes menu background color
parent
917609aa36
commit
d5c20bc0d0
|
@ -1,4 +1,4 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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/. */
|
||||
|
||||
|
|
|
@ -5,9 +5,12 @@
|
|||
package org.mozilla.fenix.tabtray
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.cardview.widget.CardView
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.core.view.isVisible
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||
import com.google.android.material.tabs.TabLayout
|
||||
|
@ -143,6 +146,12 @@ class TabTrayView(
|
|||
tabTrayItemMenu.menuBuilder
|
||||
.build(view.context)
|
||||
.show(anchor = it)
|
||||
.also { pu ->
|
||||
(pu.contentView as? CardView)?.setCardBackgroundColor(ContextCompat.getColor(
|
||||
view.context,
|
||||
R.color.foundation_normal_theme
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
fabView.new_tab_button.setOnClickListener {
|
||||
|
|
Loading…
Reference in New Issue