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

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

am d4895aa0: am b0def77c: am 3f544e0b: am 31f80f0f: Assign bindService()...

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
parents fa1f0380 0b06e8bc
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -143,9 +143,7 @@ public final class MediaBrowser {


        boolean bound = false;
        boolean bound = false;
        try {
        try {
            if (mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE)) {
            bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);
                bound = true;
            }
        } catch (Exception ex) {
        } catch (Exception ex) {
            Log.e(TAG, "Failed binding to service " + mServiceComponent);
            Log.e(TAG, "Failed binding to service " + mServiceComponent);
        }
        }