Remove viewpager debug toasts again

Change-Id: Ib905adf383ca77290320c157f467edd12aca2618
This commit is contained in:
SpiritCroc 2022-04-19 09:48:14 +02:00
parent ed2b05628a
commit bb5af3da7f
1 changed files with 0 additions and 4 deletions

View File

@ -683,14 +683,10 @@ class HomeDetailFragment @Inject constructor(
private fun getSpaceIdForPageIndex(position: Int, spaces: List<String?>? = pagerSpaces): String? { private fun getSpaceIdForPageIndex(position: Int, spaces: List<String?>? = pagerSpaces): String? {
if (spaces == null) { if (spaces == null) {
Timber.e(Exception("getSpaceIdForPageIndex: null spaces!")) Timber.e(Exception("getSpaceIdForPageIndex: null spaces!"))
if (DEBUG_VIEW_PAGER) {
Toast.makeText(requireContext(), "AAAAAAAA1", Toast.LENGTH_SHORT).show()
}
return null return null
} }
if (DEBUG_VIEW_PAGER && position > 0 && spaces[position-1] == null) { if (DEBUG_VIEW_PAGER && position > 0 && spaces[position-1] == null) {
Timber.e(Exception("getSpaceIdForPageIndex: null space!")) Timber.e(Exception("getSpaceIdForPageIndex: null space!"))
Toast.makeText(requireContext(), "AAAAAAAA2", Toast.LENGTH_SHORT).show()
} }
return if (position == 0) null else spaces[position-1] return if (position == 0) null else spaces[position-1]
} }