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

Commit d34b7779 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "QS tile lifecycle management" into nyc-dev am: e59bbb08

am: 518eb441

* commit '518eb441':
  QS tile lifecycle management

Change-Id: If72193fd330be19438de969248e045c00be40ddc
parents 0e7b6027 518eb441
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -148,13 +148,20 @@ public class TileLifecycleManager extends BroadcastReceiver implements
        if (DEBUG) Log.d(TAG, "onServiceConnected " + name);
        // Got a connection, set the binding count to 0.
        mBindTryCount = 0;
        mWrapper = new QSTileServiceWrapper(Stub.asInterface(service));
        final QSTileServiceWrapper wrapper = new QSTileServiceWrapper(Stub.asInterface(service));
        try {
            service.linkToDeath(this, 0);
        } catch (RemoteException e) {
        }
        setQSService(mService);
        setQSTile(mTile);
        if (!wrapper.setQSService(mService)) {
            handleDeath();
            return;
        }
        if (!wrapper.setQSTile(mTile)) {
            handleDeath();
            return;
        }
        mWrapper = wrapper;
        handlePendingMessages();
    }