am 7f447de2: Merge "Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets." into honeycomb

* commit '7f447de2f511ec8ee35af8abf0ca3c46ffa68289':
  Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets.
This commit is contained in:
Winson Chung
2011-01-19 01:00:36 -08:00
committed by Android Git Automerger
2 changed files with 3 additions and 1 deletions

View File

@ -917,9 +917,11 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
}
private void enqueueDeferredUnbindServiceMessage() {
/* Temporarily disable delayed service unbinding
// Remove any existing deferred-unbind messages
mMainQueue.removeMessages(sUnbindServiceMessageType);
mMainQueue.sendEmptyMessageDelayed(sUnbindServiceMessageType, sUnbindServiceDelay);
*/
}
private boolean requestBindService() {

View File

@ -484,9 +484,9 @@ class AppWidgetService extends IAppWidgetService.Stub
new FilterComparison(intent));
if (mBoundRemoteViewsServices.containsKey(key)) {
final ServiceConnection conn = mBoundRemoteViewsServices.get(key);
mBoundRemoteViewsServices.remove(key);
conn.onServiceDisconnected(null);
mContext.unbindService(conn);
mBoundRemoteViewsServices.remove(key);
}
}
}