Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fixes: Minor nit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
omerhabib26 committed Jul 24, 2023
1 parent 60aaded commit e8b4703
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions OpenEdXMobile/src/main/java/org/edx/mobile/util/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ public boolean isNewLogistrationEnabled() {
public boolean isDiscussionProfilePicturesEnabled() {
return getBoolean(DISCUSSIONS_ENABLE_PROFILE_PICTURE_PARAM, false);
}

public boolean isRegistrationEnabled() {
return getBoolean(REGISTRATION_ENABLED, true);
}
Expand Down Expand Up @@ -652,6 +653,7 @@ public boolean isWhatsNewEnabled() {
public boolean isCourseVideosEnabled() {
return getBoolean(COURSE_VIDEOS_ENABLED, true);
}

public boolean isAnnouncementEnabled() {
return getBoolean(ANNOUNCEMENTS_ENABLED, true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,10 @@ public ResponsesLoader(@ActivityContext @NonNull Context context, @NonNull Strin
this.threadId = threadId;
this.isQuestionTypeThread = isQuestionTypeThread;
this.isFetchingEndorsed = isQuestionTypeThread;
discussionService = EntryPointAccessors
.fromApplication(context, EdxDefaultModule.ProviderEntryPoint.class)
.getDiscussionService();
config = EntryPointAccessors
.fromApplication(context, EdxDefaultModule.ProviderEntryPoint.class)
.getEnvironment().getConfig();
EdxDefaultModule.ProviderEntryPoint entryPointProvider = EntryPointAccessors
.fromApplication(context, EdxDefaultModule.ProviderEntryPoint.class);
discussionService = entryPointProvider.getDiscussionService();
config = entryPointProvider.getEnvironment().getConfig();
}

@Override
Expand Down

0 comments on commit e8b4703

Please sign in to comment.