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

Commit 9d1d8c33 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

SystemUI: Make sure to notifydatasetchange on each tile add.

  Otherwise you may end up in a scenario where there aren't enough
  pages for tiles to be added causing an IndexOutOfBoundsException.

  TICKET: CYNGNOS-1526

Change-Id: Ie5fa3947fa94c5aefbdead68eddc26fec13de73c
parent 38a520c2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -561,6 +561,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
                    record.destinationPage = tileDestPage;
                    recordMap.put(tile, record);
                    mRecords.add(i, record);
                    mPagerAdapter.notifyDataSetChanged();

                    // add the view
                    mPages.get(record.destinationPage).addView(record.tileView);