diff options
| author | 2014-06-09 17:44:43 +0000 | |
|---|---|---|
| committer | 2014-06-09 17:44:43 +0000 | |
| commit | 8d396392cce8a67f2e69271eb98e0790efd483fc (patch) | |
| tree | 44e1dd6c4a18a323f39c30d4be33bda78c8da07b | |
| parent | 32c67ee1193040d1af0a9bcf47610d128f99403e (diff) | |
| parent | 8719611744dea3f91e3969131b68618cc9acf27d (diff) | |
am 9a904962: Merge "Set mBound only when bind succeeds" into lmp-preview-dev
* commit '9a9049626d214a6329090abbba8e067ef3005c2e':
Set mBound only when bind succeeds
| -rw-r--r-- | services/core/java/com/android/server/tv/TvInputManagerService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java index 1c277a8dd961..10a67c4e421d 100644 --- a/services/core/java/com/android/server/tv/TvInputManagerService.java +++ b/services/core/java/com/android/server/tv/TvInputManagerService.java @@ -301,9 +301,8 @@ public final class TvInputManagerService extends SystemService { Intent i = new Intent(TvInputService.SERVICE_INTERFACE).setComponent( userState.inputMap.get(inputId).getComponent()); - mContext.bindServiceAsUser(i, serviceState.mConnection, Context.BIND_AUTO_CREATE, - new UserHandle(userId)); - serviceState.mBound = true; + serviceState.mBound = mContext.bindServiceAsUser( + i, serviceState.mConnection, Context.BIND_AUTO_CREATE, new UserHandle(userId)); } else if (serviceState.mService != null && isStateEmpty) { // This means that the service is already connected but its state indicates that we have // nothing to do with it. Then, disconnect the service. |