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

Commit 3ad4a1b1 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fixing a bug in RemoteViewsAdapter

Change-Id: If39a05b65ee9f8f3a2ac6b7ebb06a76122c4ada7
parent b84b7e8f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -86,9 +86,6 @@ public class RemoteViewsAdapter extends BaseAdapter {
            mRemoteViewsFactory = IRemoteViewsFactory.Stub.asInterface(service);
            mConnected = true;

            // start the background loader
            mViewCache.startBackgroundLoader();

            // notifyDataSetChanged should be called first, to ensure that the
            // views are not updated twice
            notifyDataSetChanged();
@@ -111,6 +108,9 @@ public class RemoteViewsAdapter extends BaseAdapter {
                    });
                }
            });

            // start the background loader
            mViewCache.startBackgroundLoader();
        }

        public void onServiceDisconnected(ComponentName name) {