Skip to content

Commit

Permalink
Fix another bug with preferences :-(.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnowelzel committed Aug 15, 2018
1 parent 5b7dd73 commit cbb4fc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "de.arnowelzel.android.periodical"
minSdkVersion 14
targetSdkVersion 27
versionCode 56
versionName "1.14"
versionCode 57
versionName "1.15"
buildConfigField "String", "VERSION_YEAR", "\"2018\""

return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ private boolean backupRestore(boolean backup) {
*/
void restorePreferences() {
Integer period_length = getOption("period_length", DEFAULT_PERIOD_LENGTH);
Integer luteal_length = getOption("luteal_length ", DEFAULT_LUTEAL_LENGTH);
Integer luteal_length = getOption("luteal_length", DEFAULT_LUTEAL_LENGTH);
Integer startofweek = getOption("startofweek", DEFAULT_START_OF_WEEK);
if(startofweek != DEFAULT_START_OF_WEEK && startofweek != 1) startofweek = DEFAULT_START_OF_WEEK;
Integer maximum_cycle_length = getOption("maximum_cycle_length", DEFAULT_CYCLE_LENGTH);
Expand Down

0 comments on commit cbb4fc3

Please sign in to comment.