aboutsummaryrefslogtreecommitdiff
path: root/NotificationShowcase/src
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2013-07-26 11:43:31 -0400
committerChris Wren <cwren@android.com>2013-08-05 15:40:04 -0400
commitfcb0b151aa75dfe1545057f9b513fce14e4b0d44 (patch)
tree9d39361638a705a2ed80d8a44e0b793a4d8399e3 /NotificationShowcase/src
parent0aa277e08143ce1c60f7e00c88b5c4d52094e5d5 (diff)
downloadexperimental-fcb0b151aa75dfe1545057f9b513fce14e4b0d44.tar.gz
make the mock phone call insistent
Change-Id: I12b508c531c9c61e744ca70e1c521c90b975a291
Diffstat (limited to 'NotificationShowcase/src')
-rw-r--r--NotificationShowcase/src/com/android/example/notificationshowcase/NotificationService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationService.java b/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationService.java
index 32302db..9996081 100644
--- a/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationService.java
+++ b/NotificationShowcase/src/com/android/example/notificationshowcase/NotificationService.java
@@ -127,7 +127,7 @@ public class NotificationService extends IntentService {
long uploadWhen = System.currentTimeMillis();
mNotifications.add(makeUploadNotification(this, 10, uploadWhen));
- mNotifications.add(new NotificationCompat.Builder(this)
+ Notification phoneCall = new NotificationCompat.Builder(this)
.setContentTitle("Incoming call")
.setContentText("Matias Duarte")
.setLargeIcon(getBitmap(this, R.drawable.matias_hed))
@@ -140,7 +140,9 @@ public class NotificationService extends IntentService {
.addAction(R.drawable.ic_end_call, "Ignore",
ToastService.getPendingIntent(this, "call ignored"))
.setAutoCancel(true)
- .build());
+ .build();
+ phoneCall.flags |= Notification.FLAG_INSISTENT;
+ mNotifications.add(phoneCall);
mNotifications.add(new NotificationCompat.Builder(this)
.setContentTitle("Stopwatch PRO")