am d4895aa0: am b0def77c: am 3f544e0b: am 31f80f0f: Assign bindService() result to a boolean directly. One less if-else

* commit 'd4895aa051b6d3c9fe5439b182d6cb8df263a0d6':
  Assign bindService() result to a boolean directly. One less if-else
This commit is contained in:
Yao Chen
2014-09-27 06:17:02 +00:00
committed by Android Git Automerger

View File

@@ -143,9 +143,7 @@ public final class MediaBrowser {
boolean bound = false;
try {
if (mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE)) {
bound = true;
}
bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);
} catch (Exception ex) {
Log.e(TAG, "Failed binding to service " + mServiceComponent);
}