Skip to content

Commit

Permalink
[Student][RC 6.9] Hotfix for modules (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorNeedham authored Sep 16, 2020
1 parent 1a82548 commit c43d4ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/student/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ android {
applicationId "com.instructure.candroid"
minSdkVersion Versions.MIN_SDK
targetSdkVersion Versions.TARGET_SDK
versionCode = 217
versionCode = 218
versionName = '6.9.0'

vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ open class ModuleListRecyclerAdapter(
val tabs = awaitApi<List<Tab>> { TabManager.getTabs(courseContext, it, isRefresh) }
.filter { !(it.isExternal && it.isHidden) }

if (tabs.find { it.tabId == "modules" } != null) {
// We only want to show modules if its a course nav option OR set to as the homepage
if (tabs.find { it.tabId == "modules" } != null || (courseContext as Course).homePage?.apiString == "modules") {
ModuleManager.getFirstPageModuleObjects(courseContext, mModuleObjectCallback!!, true)
} else {
adapterToFragmentCallback?.onRefreshFinished(true)
Expand Down

0 comments on commit c43d4ab

Please sign in to comment.