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

Commit 6edbefdd authored by Jason Monk's avatar Jason Monk
Browse files

QS: Hacks to fix bigger problems in TileService binding

Bug: 29121793
Change-Id: I9cb8d8ee36ce5cc77ba3c11decb1b3a797fd7999
parent 7aac630f
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -312,7 +312,8 @@ public class TileService extends Service {
    public IBinder onBind(Intent intent) {
    public IBinder onBind(Intent intent) {
        mService = IQSService.Stub.asInterface(intent.getIBinderExtra(EXTRA_SERVICE));
        mService = IQSService.Stub.asInterface(intent.getIBinderExtra(EXTRA_SERVICE));
        try {
        try {
            mTile = mService.getTile(new ComponentName(getPackageName(), getClass().getName()));
            ComponentName component = intent.getParcelableExtra(EXTRA_COMPONENT);
            mTile = mService.getTile(component);
        } catch (RemoteException e) {
        } catch (RemoteException e) {
            throw new RuntimeException("Unable to reach IQSService", e);
            throw new RuntimeException("Unable to reach IQSService", e);
        }
        }
+1 −0
Original line number Original line Diff line number Diff line
@@ -88,6 +88,7 @@ public class TileLifecycleManager extends BroadcastReceiver implements
        mHandler = handler;
        mHandler = handler;
        mIntent = intent;
        mIntent = intent;
        mIntent.putExtra(TileService.EXTRA_SERVICE, service.asBinder());
        mIntent.putExtra(TileService.EXTRA_SERVICE, service.asBinder());
        mIntent.putExtra(TileService.EXTRA_COMPONENT, intent.getComponent());
        mUser = user;
        mUser = user;
        if (DEBUG) Log.d(TAG, "Creating " + mIntent + " " + mUser);
        if (DEBUG) Log.d(TAG, "Creating " + mIntent + " " + mUser);
    }
    }