| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.notifications; | 5 package org.chromium.chrome.browser.notifications; |
| 6 | 6 |
| 7 import android.app.Notification; | 7 import android.app.Notification; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.support.v4.app.NotificationCompat; | 9 import android.support.v4.app.NotificationCompat; |
| 10 import android.support.v4.app.NotificationCompat.Action; | 10 import android.support.v4.app.NotificationCompat.Action; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 builder.setContentIntent(mContentIntent); | 33 builder.setContentIntent(mContentIntent); |
| 34 builder.setDeleteIntent(mDeleteIntent); | 34 builder.setDeleteIntent(mDeleteIntent); |
| 35 for (Action action : mActions) { | 35 for (Action action : mActions) { |
| 36 builder.addAction(action); | 36 builder.addAction(action); |
| 37 } | 37 } |
| 38 if (mSettingsAction != null) { | 38 if (mSettingsAction != null) { |
| 39 builder.addAction(mSettingsAction); | 39 builder.addAction(mSettingsAction); |
| 40 } | 40 } |
| 41 builder.setDefaults(mDefaults); | 41 builder.setDefaults(mDefaults); |
| 42 builder.setVibrate(mVibratePattern); | 42 builder.setVibrate(mVibratePattern); |
| 43 builder.setWhen(mTimestamp); |
| 43 return builder.build(); | 44 return builder.build(); |
| 44 } | 45 } |
| 45 } | 46 } |
| OLD | NEW |