Skip to content

Commit

Permalink
fix bug, when notifications were wrong disabled or enabled #Apps-968 …
Browse files Browse the repository at this point in the history
…fixed
  • Loading branch information
KirillMakarov committed Feb 9, 2017
1 parent a6443da commit 1bb0773
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -31,8 +31,8 @@ android {
applicationId "org.stepic.droid"
minSdkVersion minSdk
targetSdkVersion 25
versionCode 120
versionName "1.27.1"
versionCode 121
versionName "1.27.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// Enabling multidex support.
multiDexEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,9 @@ public void setKeepScreenOnSteps(boolean isChecked) {

public boolean isNotificationEnabled(NotificationType type) {
return !sharedPreferenceHelper.isNotificationDisabled(type);
// return false; // FIXME: 01.11.16
}

public void setNotificationEnabled(NotificationType type, boolean isChecked) {
sharedPreferenceHelper.setNotificationDisabled(type, isChecked);
public void setNotificationEnabled(NotificationType type, boolean isEnabled) {
sharedPreferenceHelper.setNotificationDisabled(type, !isEnabled);
}
}

0 comments on commit 1bb0773

Please sign in to comment.