[Settings] Save profile after teacher absences setting change

This commit is contained in:
Kuba Szczodrzyński 2019-10-02 17:59:54 +02:00
parent a849f0e8a2
commit 74639e2b03

View File

@ -1071,6 +1071,7 @@ public class SettingsNewFragment extends MaterialAboutFragment {
.setChecked(app.profile.getStudentData("showTeacherAbsences", true)) .setChecked(app.profile.getStudentData("showTeacherAbsences", true))
.setOnChangeAction((isChecked, tag) -> { .setOnChangeAction((isChecked, tag) -> {
app.profile.putStudentData("showTeacherAbsences", isChecked); app.profile.putStudentData("showTeacherAbsences", isChecked);
app.profileSaveAsync();
return true; return true;
}) })
); );