diff options
author | Danny Baumann <dannybaumann@web.de> | 2013-10-11 11:01:15 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2013-10-11 11:29:31 +0200 |
commit | d6b75e95ed324d5e207ba424420e8e8d5c94964f (patch) | |
tree | f16b21cac56d1848c42e48352ed4582c6ca82821 /src | |
parent | 3b064097540f71b28ccf7b397f8c6911cd30264c (diff) | |
download | android_packages_apps_LockClock-d6b75e95ed324d5e207ba424420e8e8d5c94964f.tar.gz android_packages_apps_LockClock-d6b75e95ed324d5e207ba424420e8e8d5c94964f.tar.bz2 android_packages_apps_LockClock-d6b75e95ed324d5e207ba424420e8e8d5c94964f.zip |
Fix off-by-one error.
Change-Id: I6d4f41ebb5fdaef45305a3050bee13c7d8314e5c
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/cyanogenmod/lockclock/calendar/CalendarWidgetService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/lockclock/calendar/CalendarWidgetService.java b/src/com/cyanogenmod/lockclock/calendar/CalendarWidgetService.java index e7ee4cb..a53f58f 100755 --- a/src/com/cyanogenmod/lockclock/calendar/CalendarWidgetService.java +++ b/src/com/cyanogenmod/lockclock/calendar/CalendarWidgetService.java @@ -119,7 +119,7 @@ class CalendarRemoteViewsFactory implements RemoteViewsFactory { @Override public RemoteViews getViewAt(int position) { - if (0 > position || mCalendarInfo.getEvents().size() < position) { + if (position < 0 || position >= mCalendarInfo.getEvents().size()) { return null; } |