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

Commit 7f447de2 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Disabling queued unbinding of RemoteViewsServices until we fix flashing...

Merge "Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets." into honeycomb
parents aac19783 32cf1934
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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() {
+1 −1
Original line number Diff line number Diff line
@@ -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);
            }
        }
    }