aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-07-17 10:33:58 -0700
committerScott Jackson <daneren2005@gmail.com>2014-07-17 10:33:58 -0700
commit9c5f9b3ac86f3aee81c8ab91960f1d30267b9c5d (patch)
tree9ea8921c845cc4d8cc72eda20bd865dfd72bc161 /src/github
parent1893c819430bee25de412f0cee8c1d0afa910a59 (diff)
downloaddsub-9c5f9b3ac86f3aee81c8ab91960f1d30267b9c5d.tar.gz
dsub-9c5f9b3ac86f3aee81c8ab91960f1d30267b9c5d.tar.bz2
dsub-9c5f9b3ac86f3aee81c8ab91960f1d30267b9c5d.zip
Move to displaying less generic sync title
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/util/Notifications.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/util/Notifications.java b/src/github/daneren2005/dsub/util/Notifications.java
index 75c69d9e..fc375076 100644
--- a/src/github/daneren2005/dsub/util/Notifications.java
+++ b/src/github/daneren2005/dsub/util/Notifications.java
@@ -295,13 +295,15 @@ public final class Notifications {
public static void showSyncNotification(final Context context, int stringId, String extra) {
if(Util.getPreferences(context).getBoolean(Constants.PREFERENCES_KEY_SYNC_NOTIFICATION, true)) {
- String content = (extra != null) ? context.getResources().getString(stringId, extra) : context.getResources().getString(stringId);
+ if(extra == null) {
+ extra = "";
+ }
NotificationCompat.Builder builder;
builder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.stat_notify_sync)
- .setContentTitle(context.getResources().getString(R.string.sync_title))
- .setContentText(content)
+ .setContentTitle(context.getResources().getString(stringId))
+ .setContentText(extra)
.setStyle(new NotificationCompat.BigTextStyle().bigText(content.replace(", ", "\n")))
.setOngoing(false)
.setGroup(NOTIFICATION_SYNC_GROUP)