Skip to content

Commit

Permalink
[Layout] - Refactor: use same layout for all of the content listing f…
Browse files Browse the repository at this point in the history
…ragments
  • Loading branch information
Cliabhach authored and caguilar187 committed Oct 25, 2018
1 parent 70ab313 commit e68b240
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import edu.artic.navigation.NavigationConstants
import edu.artic.viewmodel.BaseViewModelFragment
import edu.artic.viewmodel.Navigate
import io.reactivex.rxkotlin.subscribeBy
import kotlinx.android.synthetic.main.fragment_all_events.*
import kotlinx.android.synthetic.main.fragment_view_all.*
import kotlin.reflect.KClass

class AllEventsFragment : BaseViewModelFragment<AllEventsViewModel>() {
Expand All @@ -29,7 +29,7 @@ class AllEventsFragment : BaseViewModelFragment<AllEventsViewModel>() {
override val viewModelClass: KClass<AllEventsViewModel>
get() = AllEventsViewModel::class
override val layoutResId: Int
get() = R.layout.fragment_all_events
get() = R.layout.fragment_view_all

override val title = R.string.events

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import edu.artic.viewmodel.BaseViewModelFragment
import edu.artic.viewmodel.Navigate
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.rxkotlin.subscribeBy
import kotlinx.android.synthetic.main.fragment_all_exhibitions.*
import kotlinx.android.synthetic.main.fragment_view_all.*
import kotlin.reflect.KClass

class AllExhibitionsFragment : BaseViewModelFragment<AllExhibitionsViewModel>() {
Expand All @@ -30,7 +30,7 @@ class AllExhibitionsFragment : BaseViewModelFragment<AllExhibitionsViewModel>()
override val viewModelClass: KClass<AllExhibitionsViewModel>
get() = AllExhibitionsViewModel::class
override val layoutResId: Int
get() = R.layout.fragment_all_exhibitions
get() = R.layout.fragment_view_all

override val title = R.string.onView

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import edu.artic.viewmodel.BaseViewModelFragment
import edu.artic.viewmodel.Navigate
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.rxkotlin.subscribeBy
import kotlinx.android.synthetic.main.fragment_all_tours.*
import kotlinx.android.synthetic.main.fragment_view_all.*
import kotlin.reflect.KClass

class AllToursFragment : BaseViewModelFragment<AllToursViewModel>() {
Expand All @@ -31,7 +31,7 @@ class AllToursFragment : BaseViewModelFragment<AllToursViewModel>() {
override val viewModelClass: KClass<AllToursViewModel>
get() = AllToursViewModel::class
override val layoutResId: Int
get() = R.layout.fragment_all_tours
get() = R.layout.fragment_view_all

override val title = R.string.tours

Expand Down
40 changes: 0 additions & 40 deletions content_listing/src/main/res/layout/fragment_all_events.xml

This file was deleted.

40 changes: 0 additions & 40 deletions content_listing/src/main/res/layout/fragment_all_exhibitions.xml

This file was deleted.

40 changes: 0 additions & 40 deletions content_listing/src/main/res/layout/fragment_all_tours.xml

This file was deleted.

0 comments on commit e68b240

Please sign in to comment.