Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b06e8bc authored by Yao Chen's avatar Yao Chen Committed by Android Git Automerger
Browse files

am b0def77c: am 3f544e0b: am 31f80f0f: Assign bindService() result to a...

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

* commit 'b0def77cda2660cecea6d890452c1fac335c087f':
  Assign bindService() result to a boolean directly. One less if-else
parents f7d54c11 cadd8ac1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
        }