Skip to content

Commit

Permalink
dashboard: smoother mycourses (fixes #3522) (#3525)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dogi <[email protected]>
  • Loading branch information
3 people authored May 30, 2024
1 parent 44143fb commit 594d99b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1552
versionName "0.15.52"
versionCode 1553
versionName "0.15.53"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,15 @@ open class BaseDashboardFragment : BaseDashboardFragmentPlugin(), NotificationCa
override fun onDestroy() {
super.onDestroy()
profileDbHandler.onDestory()
myCoursesResults.removeChangeListener(myCoursesChangeListener)
myTeamsResults.removeChangeListener(myTeamsChangeListener)
offlineActivitiesResults.removeChangeListener(offlineActivitiesChangeListener)
if (::myCoursesResults.isInitialized) {
myCoursesResults.removeChangeListener(myCoursesChangeListener)
}
if (::myTeamsResults.isInitialized) {
myTeamsResults.removeChangeListener(myTeamsChangeListener)
}
if (::offlineActivitiesResults.isInitialized) {
offlineActivitiesResults.removeChangeListener(offlineActivitiesChangeListener)
}
mRealm.close()
}

Expand Down

0 comments on commit 594d99b

Please sign in to comment.