Merge "QS: Hacks to fix bigger problems in TileService binding" into nyc-dev
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user