|
|
|
|
@ -6,11 +6,11 @@ import android.view.ViewGroup |
|
|
|
|
import androidx.fragment.app.FragmentManager |
|
|
|
|
import androidx.fragment.app.FragmentStatePagerAdapter |
|
|
|
|
import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.ui.modules.calendar.CalendarFragment |
|
|
|
|
import net.pokeranalytics.android.ui.modules.feed.FeedFragment |
|
|
|
|
import net.pokeranalytics.android.exceptions.PAIllegalStateException |
|
|
|
|
import net.pokeranalytics.android.ui.fragment.GraphFragment |
|
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BaseFragment |
|
|
|
|
import net.pokeranalytics.android.ui.graph.Graph |
|
|
|
|
import net.pokeranalytics.android.ui.modules.calendar.CalendarFragment |
|
|
|
|
import java.lang.ref.WeakReference |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -25,7 +25,7 @@ class ComparisonChartPagerAdapter(val context: Context, fragmentManager: Fragmen |
|
|
|
|
0 -> GraphFragment.newInstance(Graph.Style.BAR) |
|
|
|
|
1 -> GraphFragment.newInstance(Graph.Style.MULTILINE) |
|
|
|
|
2 -> CalendarFragment.newInstance() |
|
|
|
|
else -> FeedFragment.newInstance() |
|
|
|
|
else -> throw PAIllegalStateException("There should not be more than $count items, position = $position") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|