In fact, switching an item between ongoing and notifications works.
The test just wasn't testing that. Change-Id: If1af2a7258d2a3764f845d9862a0a0ff62b1d7ed
This commit is contained in:
@@ -191,7 +191,7 @@ public class NotificationTestList extends TestActivity
|
|||||||
R.drawable.icon4,
|
R.drawable.icon4,
|
||||||
null, System.currentTimeMillis(), "Stress - Latest",
|
null, System.currentTimeMillis(), "Stress - Latest",
|
||||||
"Notify me!!!", null);
|
"Notify me!!!", null);
|
||||||
n.flags |= Notification.FLAG_ONGOING_EVENT;
|
//n.flags |= Notification.FLAG_ONGOING_EVENT;
|
||||||
mNM.notify(1, n);
|
mNM.notify(1, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user