Skip to content

Commit

Permalink
added updates to the .lite file
Browse files Browse the repository at this point in the history
  • Loading branch information
pavi38 committed Jan 23, 2025
1 parent da2c94a commit 0e0ccf5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -796,12 +796,19 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N
}
}

fun openMyFragment(f: Fragment) {
override fun openMyFragment(f: Fragment) {
val b = Bundle()
b.putBoolean("isMyCourseLib", true)
f.arguments = b
val fragmentName = f::class.java.simpleName
val tag = "My$fragmentName"
when (tag) {
"MyCoursesFragment" -> result?.setSelection(2, false)
"MyResourcesFragment" -> result?.setSelection(1, false)
else -> {
result?.setSelection(0, false)
}
}
openCallFragment(f, tag)
}

Expand Down

0 comments on commit 0e0ccf5

Please sign in to comment.