Skip to content

Commit

Permalink
notification: initialize callback (fixes #2303) (#2521)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Sep 25, 2023
1 parent c52a159 commit 2541ebf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1055
versionName "0.10.55"
versionCode 1056
versionName "0.10.56"
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 @@ -33,6 +33,15 @@ class NotificationFragment : BottomSheetDialogFragment() {
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
): View? {
callback = object : NotificationCallback {
override fun showPendingSurveyDialog() {}
override fun showTaskListDialog() {}
override fun showUserResourceDialog() {}
override fun showResourceDownloadDialog() {}
override fun syncKeyId() {}
override fun forceDownloadNewsImages() {}
override fun downloadDictionary() {}
}
mRealm = DatabaseService(requireActivity()).realmInstance
resourceList = emptyList()
return inflater.inflate(R.layout.fragment_notification, container, false)
Expand Down

0 comments on commit 2541ebf

Please sign in to comment.