2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/20723: Fix credit card management fragment binding

This commit is contained in:
Roger Yang 2021-08-06 13:22:43 -04:00 committed by mergify[bot]
parent b4ce5abf0e
commit 1612db86c8
3 changed files with 1 additions and 15 deletions

View File

@ -40,7 +40,7 @@ class CreditCardsManagementFragment : SecureFragment() {
container: ViewGroup?, container: ViewGroup?,
savedInstanceState: Bundle? savedInstanceState: Bundle?
): View? { ): 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) { creditCardsStore = StoreProvider.get(this) {
CreditCardsFragmentStore(CreditCardsListState(creditCards = emptyList())) CreditCardsFragmentStore(CreditCardsListState(creditCards = emptyList()))

View File

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

View File

@ -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" />