X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/48872989d72ff8bc88932c39a55d22aea425ced6..refs/heads/master:/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java diff --git a/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java b/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java index 63ddf635..5dd043f5 100644 --- a/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java +++ b/src/com/owncloud/android/notifications/NotificationBuilderWithProgressBar.java @@ -1,5 +1,8 @@ -/* ownCloud Android client application - * Copyright (C) 2014 ownCloud Inc. +/** + * ownCloud Android client application + * + * @author David A. Velasco + * Copyright (C) 2015 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, @@ -31,8 +34,6 @@ import android.widget.RemoteViews; * a progress bar is available in every Android version, because * {@link NotificationCompat.Builder#setProgress(int, int, boolean)} has no * real effect for Android < 4.0 - * - * @author David A. Velasco */ public class NotificationBuilderWithProgressBar extends NotificationCompat.Builder { @@ -54,7 +55,8 @@ public class NotificationBuilderWithProgressBar extends NotificationCompat.Build if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) { return new NotificationBuilderWithProgressBar(context); } else { - return new NotificationCompat.Builder(context); + return new NotificationCompat.Builder(context). + setColor(context.getResources().getColor(R.color.primary)); } }