summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-09-29 17:31:32 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-09-29 17:31:32 +0200
commitcb677fd82171ea407372de070a6075a2e116f18a (patch)
tree5d5617bd3837a2abe395d30af025538625cbef14 /src
parentebac91b6f8053488de3e731464498c0a72330246 (diff)
downloadAntennaPod-cb677fd82171ea407372de070a6075a2e116f18a.zip
Replaced numbers with constants
Diffstat (limited to 'src')
-rw-r--r--src/de/danoeh/antennapod/preferences/UserPreferences.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/danoeh/antennapod/preferences/UserPreferences.java b/src/de/danoeh/antennapod/preferences/UserPreferences.java
index 1f2d720c9..73a4a1a14 100644
--- a/src/de/danoeh/antennapod/preferences/UserPreferences.java
+++ b/src/de/danoeh/antennapod/preferences/UserPreferences.java
@@ -6,6 +6,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
+import android.support.v4.app.NotificationCompat;
import android.util.Log;
import org.apache.commons.lang3.StringUtils;
@@ -143,10 +144,10 @@ public class UserPreferences implements
pauseForFocusLoss = sp.getBoolean(PREF_PAUSE_PLAYBACK_FOR_FOCUS_LOSS, false);
seekDeltaSecs = Integer.valueOf(sp.getString(PREF_SEEK_DELTA_SECS, "30"));
if (sp.getBoolean(PREF_EXPANDED_NOTIFICATION, false)) {
- notifyPriority = 2; // max priority
+ notifyPriority = NotificationCompat.PRIORITY_MAX;
}
else {
- notifyPriority = 0; // default priority
+ notifyPriority = NotificationCompat.PRIORITY_DEFAULT;
}
persistNotify = sp.getBoolean(PREF_PERSISTENT_NOTIFICATION, false);
}
@@ -390,10 +391,10 @@ public class UserPreferences implements
PREF_AUTO_FLATTR_PLAYED_DURATION_THRESHOLD_DEFAULT);
} else if (key.equals(PREF_EXPANDED_NOTIFICATION)) {
if (sp.getBoolean(PREF_EXPANDED_NOTIFICATION, false)) {
- notifyPriority = 2; // max priority
+ notifyPriority = NotificationCompat.PRIORITY_MAX;
}
else {
- notifyPriority = 0; // default priority
+ notifyPriority = NotificationCompat.PRIORITY_DEFAULT;
}
} else if (key.equals(PREF_PERSISTENT_NOTIFICATION)) {
persistNotify = sp.getBoolean(PREF_PERSISTENT_NOTIFICATION, false);