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

Commit 32cf1934 authored by Winson Chung's avatar Winson Chung
Browse files

Disabling queued unbinding of RemoteViewsServices until we fix flashing in widgets.

Change-Id: Iee53d4930dc4007df4298a282cdd5101876215a1
parent 81f39eb6
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);
            }
        }
    }