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

Commit 088a7d0d authored by Michael Chan's avatar Michael Chan
Browse files

b/1972231 A tweak to improve on going to a specific time in the agenda view...

b/1972231 A tweak to improve on going to a specific time in the agenda view e.g. from weekview or widget.

The root problem is that ListView ignores my setSelection() call if
notifyDataSetChange is called before it has a chance to redraw.  This can happen
when Agenda view starts up and fires off multiple queries.

Change-Id: I30c382432961dbf2d7788723343764b51a665657
parent c89f750e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -481,8 +481,7 @@ public class AgendaWindowAdapter extends BaseAdapter {
            return;
        }

        // Query for 2 days before the start day for a total of MIN_QUERY_DURATION days
        startDay -= 2;
        // Query for a total of MIN_QUERY_DURATION days
        int endDay = startDay + MIN_QUERY_DURATION;

        queueQuery(startDay, endDay, goToTime, QUERY_TYPE_CLEAN);