Merge "Fixed whitelistManager set on unbindServiceLocked()" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8d78c33c9b
@@ -1148,9 +1148,7 @@ public final class ActiveServices {
|
|||||||
|
|
||||||
if (r.binding.service.app != null) {
|
if (r.binding.service.app != null) {
|
||||||
if (r.binding.service.app.whitelistManager) {
|
if (r.binding.service.app.whitelistManager) {
|
||||||
// Must reset flag here because on computeOomAdjLocked() the service
|
updateWhitelistManagerLocked(r.binding.service.app);
|
||||||
// connection will be gone...
|
|
||||||
r.binding.service.app.whitelistManager = false;
|
|
||||||
}
|
}
|
||||||
// This could have made the service less important.
|
// This could have made the service less important.
|
||||||
if ((r.flags&Context.BIND_TREAT_LIKE_ACTIVITY) != 0) {
|
if ((r.flags&Context.BIND_TREAT_LIKE_ACTIVITY) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user