Closes #20723: Fix credit card management fragment binding

upstream-sync
Roger Yang 3 years ago committed by mergify[bot]
parent 4c6566a0d2
commit 3becd30139

@ -40,7 +40,7 @@ class CreditCardsManagementFragment : SecureFragment() {
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R.layout.fragment_saved_cards, container, false)
val view = inflater.inflate(CreditCardsManagementView.LAYOUT_ID, container, false)
creditCardsStore = StoreProvider.get(this) {
CreditCardsFragmentStore(CreditCardsListState(creditCards = emptyList()))

@ -4,7 +4,6 @@
package org.mozilla.fenix.settings.creditcards.view
import android.view.LayoutInflater
import androidx.core.view.isVisible
import androidx.recyclerview.widget.LinearLayoutManager
import org.mozilla.fenix.R
@ -23,8 +22,6 @@ class CreditCardsManagementView(
private val creditCardsAdapter = CreditCardsAdapter(interactor)
init {
LayoutInflater.from(binding.root.context).inflate(LAYOUT_ID, binding.root, true)
binding.creditCardsList.apply {
adapter = creditCardsAdapter
layoutManager = LinearLayoutManager(binding.root.context)

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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/. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/saved_cards_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="org.mozilla.fenix.settings.creditcards.CreditCardsManagementFragment" />
Loading…
Cancel
Save