diff options
author | Christopher Tate <ctate@google.com> | 2018-05-16 12:59:43 -0700 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2018-05-16 14:36:12 -0700 |
commit | e84ffd94e2ee2e327595eaf12ddd1ef63dbc0eb6 (patch) | |
tree | 5ab60a19bf2339608e56e4cb90ffafc4017fce93 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 98c2f7f9de9ada08b8d27243a243a17748282813 (diff) |
Don't crash apps unfairly under FAS
When an app calls startForegroundService() from a bg state (e.g. from a
broadcast receiver) but the user has placed it under FAS, it's incorrect
to crash the app: it hasn't actually violated the fg/bg restrictions
contract. Fail quietly instead, just like the legacy-app case when O+
restrictions are imposed on it.
Change-Id: I3e8ed2ea6bdbf4167249132ddf9b7c549b9a8062
Fixes: 79235311
Test: ApiDemos [before and after changing target sdk to O+]
Test: atest android.app.cts.ServiceTest
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions