Skip to content

Commit

Permalink
courses: better back in exams (fixes #3356) (#3357)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Apr 5, 2024
1 parent e8ff055 commit 42582f3
Show file tree
Hide file tree
Showing 3 changed files with 5 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 1470
versionName "0.14.70"
versionCode 1471
versionName "0.14.71"
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 @@ -113,7 +113,7 @@ abstract class BaseExamFragment : Fragment(), ImageCaptureCallback {
AlertDialog.Builder(requireActivity())
.setTitle(getString(R.string.thank_you_for_taking_this) + type + getString(R.string.we_wish_you_all_the_best))
.setPositiveButton("Finish") { _: DialogInterface?, _: Int ->
requireActivity().onBackPressed()
parentFragmentManager.popBackStack()
try {
} catch (e: Exception) {
e.printStackTrace()
Expand Down Expand Up @@ -141,7 +141,7 @@ abstract class BaseExamFragment : Fragment(), ImageCaptureCallback {
sub?.status = "complete"
mRealm.commitTransaction()
Utilities.toast(activity, getString(R.string.thank_you_for_taking_this_survey))
requireActivity().onBackPressed()
parentFragmentManager.popBackStack()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class UserInformationFragment : BaseDialogFragment(), View.OnClickListener {
override fun onDismiss(dialog: DialogInterface) {
super.onDismiss(dialog)
Utilities.toast(activity, getString(R.string.thank_you_for_taking_this_survey))
requireActivity().onBackPressed()
parentFragmentManager.popBackStack()
}

private fun showDatePickerDialog() {
Expand Down

0 comments on commit 42582f3

Please sign in to comment.