OSDN Git Service

b/1972231 A tweak to improve on going to a specific time in the agenda view e.g....
authorMichael Chan <mchan@android.com>
Thu, 1 Oct 2009 07:21:59 +0000 (00:21 -0700)
committerMichael Chan <mchan@android.com>
Thu, 1 Oct 2009 07:21:59 +0000 (00:21 -0700)
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

src/com/android/calendar/AgendaWindowAdapter.java

index f3d95a2..9d4fb46 100644 (file)
@@ -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);