renamed ShoplistFragment to ShoppinglistShoplistFragment
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
}
|
||||
@@ -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!!
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user