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

Commit 582314e8 authored by Steven Ng's avatar Steven Ng
Browse files

Only update entries if there is a change in expand / collapse state

Test: In all widgets tray, switch to work profile. Expands an app.
      Switch to personal tab and then switch back to work tab.
      The previously expanded app is collapsed with correct arrow.
Bug: 184199207
Change-Id: Iac601a04412cb8c5f163483c5dd79da35f1fd05c
parent 8e64bba9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -186,9 +186,11 @@ public class WidgetsListAdapter extends Adapter<ViewHolder> implements OnHeaderC
     * Resets any expanded widget header.
     */
    public void resetExpandedHeader() {
        if (mWidgetsContentVisiblePackageUserKey != null) {
            mWidgetsContentVisiblePackageUserKey = null;
            updateVisibleEntries();
        }
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int pos) {