Skip to content

Commit

Permalink
Merge branch 'hotfix/notification_is_not_disabled'
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillMakarov committed Feb 9, 2017
2 parents a6443da + 1bb0773 commit 2f2aa04
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 2f2aa04

Please sign in to comment.