Skip to content

Commit

Permalink
courses: requires grading test status (fixes #2410) (#2411)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Oct 3, 2023
1 parent 598e933 commit e77f59d
Show file tree
Hide file tree
Showing 4 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 @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1071
versionName "0.10.71"
versionCode 1072
versionName "0.10.72"
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 @@ -140,7 +140,7 @@ private void showUserInfoDialog() {
UserInformationFragment.getInstance(sub.getId()).show(getChildFragmentManager(), "");
} else {
if (!mRealm.isInTransaction()) mRealm.beginTransaction();
sub.setStatus(getString(R.string.complete));
sub.setStatus("complete");
mRealm.commitTransaction();
Utilities.toast(getActivity(), getString(R.string.thank_you_for_taking_this_survey));
getActivity().onBackPressed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private void showTextInput(String type) {
private boolean updateAnsDb() {
boolean flag;
startTransaction();
sub.setStatus(currentIndex == questions.size() - 1 ? getString(R.string.graded) : getString(R.string.pending));
sub.setStatus(currentIndex == questions.size() - 1 ? "requires grading" : "pending");
RealmList<RealmAnswer> list = sub.getAnswers();
RealmAnswer answer = createAnswer(list);
RealmExamQuestion que = mRealm.copyFromRealm(questions.get(currentIndex));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void submitForm() {
private void saveSubmission(JsonObject user) {
if (!mRealm.isInTransaction()) mRealm.beginTransaction();
submissions.setUser(user.toString());
submissions.setStatus(getString(R.string.complete));
submissions.setStatus("complete");
mRealm.commitTransaction();
dismiss();
}
Expand Down

0 comments on commit e77f59d

Please sign in to comment.