commit | fc7c9f5d5cde1cb109e52fbd723d7ed144b2cffa | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Mon Mar 19 16:25:01 2018 -0700 |
committer | Christopher Tate <ctate@google.com> | Mon Mar 19 16:25:01 2018 -0700 |
tree | 6776b35fcb1d7dad50fc1ede18de5c821c021e95 | |
parent | 135989335bc89153dbd365c6fa03600f0304103a [diff] |
Add use of PendingIntent.getForegroundService() In particular, we have an example of a foreground-service PendingIntent triggered by a 15-second delayed alarm following a button click. This is enough time to exercise use cases like swiping the app out of recents before the alarm fires, therefore entering the "starting a fg service when the app is not in a fg state" flows. Bug: 73559697 Test: this is it Change-Id: If57908ab852c7a0bfab7bb1da8eda0a47493fc6b