renamed ShoplistFragment to ShoppinglistShoplistFragment

This commit is contained in:
2024-06-03 15:25:08 +02:00
parent 9e54bbc978
commit ee8d259c51
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ package de.chrissthecoder.store.adapter
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import de.chrissthecoder.store.ui.dashboard.tabfragment.shoppinglist.ShoplistFragment
import de.chrissthecoder.store.ui.dashboard.tabfragment.shoppinglist.ShoppinglistShoplistFragment
import de.chrissthecoder.store.ui.dashboard.tabfragment.UnderstockFragment
class DashboardFragmentPagerAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) {
@@ -12,7 +12,7 @@ class DashboardFragmentPagerAdapter(fragment: Fragment) : FragmentStateAdapter(f
}
override fun createFragment(position: Int) : Fragment {
return if(position == 0) { ShoplistFragment() }
return if(position == 0) { ShoppinglistShoplistFragment() }
else { UnderstockFragment() }
}
}

View File

@@ -12,7 +12,7 @@ import de.chrissthecoder.store.dataclass.ShoppinglistShoplistItem
/**
* A [Fragment] subclass to list all shops that contains assigned shoppinglists.
*/
class ShoplistFragment : Fragment() {
class ShoppinglistShoplistFragment : Fragment() {
private var _binding: FragmentShoppinglistShoplistBinding? = null
private val binding get() = _binding!!

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.dashboard.tabfragment.shoppinglist.ShoplistFragment">
tools:context=".ui.dashboard.tabfragment.shoppinglist.ShoppinglistShoplistFragment">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/shoplist"