| Index: chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java b/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
|
| index 90bbd5a4ac2c73df8e3698528a425c89b333a723..c934a6fb23d79bc5ada7d1f0849a60adfc3420c1 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
|
| @@ -12,11 +12,12 @@ import android.app.PendingIntent;
|
| import android.content.ComponentName;
|
| import android.content.Context;
|
| import android.content.Intent;
|
| -import android.support.v4.app.NotificationCompat;
|
| import android.util.Log;
|
|
|
| import org.chromium.base.ThreadUtils;
|
| import org.chromium.chrome.R;
|
| +import org.chromium.chrome.browser.ChromeApplication;
|
| +import org.chromium.chrome.browser.notifications.ChromeNotificationBuilder;
|
| import org.chromium.chrome.browser.notifications.NotificationConstants;
|
| import org.chromium.chrome.browser.notifications.NotificationManagerProxy;
|
| import org.chromium.chrome.browser.notifications.NotificationManagerProxyImpl;
|
| @@ -100,18 +101,20 @@ public class SyncNotificationController implements ProfileSyncService.SyncStateC
|
|
|
| // There is no need to provide a group summary notification because the NOTIFICATION_ID_SYNC
|
| // notification id ensures there's only one sync notification at a time.
|
| - NotificationCompat.Builder builder = new NotificationCompat.Builder(mApplicationContext)
|
| - .setAutoCancel(true)
|
| - .setContentIntent(contentIntent)
|
| - .setContentTitle(title)
|
| - .setContentText(text)
|
| - .setSmallIcon(R.drawable.ic_chrome)
|
| - .setTicker(text)
|
| - .setLocalOnly(true)
|
| - .setGroup(NotificationConstants.GROUP_SYNC);
|
| -
|
| - Notification notification =
|
| - new NotificationCompat.BigTextStyle(builder).bigText(text).build();
|
| + ChromeNotificationBuilder builder =
|
| + ((ChromeApplication) mApplicationContext)
|
| + .getChromeNotificationBuilder(true, NotificationConstants.TYPE_ID_GENERAL,
|
| + NotificationConstants.TYPE_NAME_GENERAL)
|
| + .setAutoCancel(true)
|
| + .setContentIntent(contentIntent)
|
| + .setContentTitle(title)
|
| + .setContentText(text)
|
| + .setSmallIcon(R.drawable.ic_chrome)
|
| + .setTicker(text)
|
| + .setLocalOnly(true)
|
| + .setGroup(NotificationConstants.GROUP_SYNC);
|
| +
|
| + Notification notification = builder.buildWithBigTextStyle(text);
|
|
|
| mNotificationManager.notify(NotificationConstants.NOTIFICATION_ID_SYNC, notification);
|
| }
|
|
|