Add tag "foo" to builder test's notifications.
This allows them to be conveniently cleared via adb:
$ adb shell service call notification 5 \
s16 com.android.statusbartest \
s16 foo \
i32 <NOTIFICATIONID> \
i32 <USERID>
Bug: 8564511
Change-Id: I9fae5a4a0be64d6707cc06ca938adeb8b3c0b735
This commit is contained in:
committed by
Android (Google) Code Review
parent
edf6f4b49f
commit
0e78de6c0f
@@ -49,6 +49,8 @@ public class NotificationBuilderTest extends Activity
|
||||
{
|
||||
private final static String TAG = "NotificationTestList";
|
||||
|
||||
private final static String NOTIFY_TAG = "foo";
|
||||
|
||||
NotificationManager mNM;
|
||||
Handler mHandler;
|
||||
int mStartDelay;
|
||||
@@ -196,7 +198,7 @@ public class NotificationBuilderTest extends Activity
|
||||
final Notification n = buildNotification(id);
|
||||
mHandler.postDelayed(new Runnable() {
|
||||
public void run() {
|
||||
mNM.notify(id, n);
|
||||
mNM.notify(NOTIFY_TAG, id, n);
|
||||
}
|
||||
}, mStartDelay);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user