commit | 365e4c38d58d38bb61d1fdd870346f2f594825fd | [log] [tgz] |
---|---|---|
author | Christoph Studer <chstuder@google.com> | Thu Sep 18 20:35:36 2014 +0200 |
committer | Christoph Studer <chstuder@google.com> | Fri Sep 19 09:53:12 2014 +0200 |
tree | 6fc306af6fdd9e0c407b6e38be7d9b41142841cd | |
parent | da6ffa06b70925e7d051a8e8f123f9757d219f09 [diff] |
Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground() When services call Service.stopForeground(), remove FLAG_FOREGROUND_SERVICE from the notification that was supplied to Service.startForeground(). This enables services to post notifications that become user dismissable when they switch to being a background service. Restrict this to targetSdk=L apps to reduce the risk of breaking existing apps. Bug: 17551106 Change-Id: Iff8541e5bb2a23ad1fbc9ad80df5fd6eb683148b