Remove viewpager debug toasts again
Change-Id: Ib905adf383ca77290320c157f467edd12aca2618
This commit is contained in:
parent
ed2b05628a
commit
bb5af3da7f
|
@ -683,14 +683,10 @@ class HomeDetailFragment @Inject constructor(
|
|||
private fun getSpaceIdForPageIndex(position: Int, spaces: List<String?>? = pagerSpaces): String? {
|
||||
if (spaces == null) {
|
||||
Timber.e(Exception("getSpaceIdForPageIndex: null spaces!"))
|
||||
if (DEBUG_VIEW_PAGER) {
|
||||
Toast.makeText(requireContext(), "AAAAAAAA1", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
return null
|
||||
}
|
||||
if (DEBUG_VIEW_PAGER && position > 0 && spaces[position-1] == null) {
|
||||
Timber.e(Exception("getSpaceIdForPageIndex: null space!"))
|
||||
Toast.makeText(requireContext(), "AAAAAAAA2", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
return if (position == 0) null else spaces[position-1]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue