Giter VIP home page Giter VIP logo

calendar-widget's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calendar-widget's Issues

NPE when trying to get RemoteView

Reported from Google Play developer console:

App version: 1.4

java.lang.NullPointerException
at com.plusonelabs.calendar.calendar.CalendarEventVisualizer.getRemoteView(CalendarEventVisualizer.java:54)
at com.plusonelabs.calendar.EventRemoteViewsFactory.getViewAt(EventRemoteViewsFactory.java:76)
at android.widget.RemoteViewsService$RemoteViewsFactoryAdapter.getViewAt(RemoteViewsService.java:164)
at com.android.internal.widget.IRemoteViewsFactory$Stub.onTransact(IRemoteViewsFactory.java:85)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

Allow the user to select the range in which the dates are shown

It would be awesome if it was possible to select an option like "Show all dates up to 60 days" or "Show all dates set for the next three months". For some people with less frequent dates in their calendar (but who like the possibility of displaying them in a widget) this feature would be great. At the moment I am able to see exactly one date (which is set in the next month).
I would like to see this implemented!

IndexOutOfBounds possibly when placing the widget twice on the home screen

java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
at java.util.ArrayList.get(ArrayList.java:304)
at com.plusonelabs.calendar.EventRemoteViewsFactory.getViewAt(EventRemoteViewsFactory.java:64)
at android.widget.RemoteViewsService$RemoteViewsFactoryAdapter.getViewAt(RemoteViewsService.java:164)
at com.android.internal.widget.IRemoteViewsFactory$Stub.onTransact(IRemoteViewsFactory.java:85)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

User comment: two widgets

All day events are displayed one day to late

The issue is reported by several people via email and in the app comments.

Example:

"Good BUT... All my "all day events" show on the immediate previous date... ie: all day August 3rd shows under August 2nd. But Timed events show on the correct date... otherwise great design, just wish it worked... so not quite full JB or ICS calendar support yet...???"

Research has not revealed the problem. Maybe timezone related?

all-day event starts incorrectly

app ver. 1.5.1

This issue may depend on my time-zone (Asia/Tokyo).

Create an all-day event Dec.10 - Dec.14,
Then, widget shows it every 5 days.
Click one of them, event screen says Dec.9 - Dec.14.

Just for your information, following code fix this.

createCalendarEvent() in CalendarEventProvider.java

    if (event.isAllDay()) {
        event.getStartDate().withTimeAtStartOfDay();
        event.getEndDate().plusDays(1).withTimeAtStartOfDay();
    }

IllegalArgumentException in certain time zone

Extracted from the play store developer console:

app version: 1.4

java.lang.IllegalArgumentException: Illegal instant due to time zone offset transition: 2012-10-14T00:00:00.000 (America/Santiago)
at org.joda.time.DateTimeZone.convertLocalToUTC(DateTimeZone.java:996)
at com.plusonelabs.calendar.calendar.CalendarEventProvider.createCalendarEvent(CalendarEventProvider.java:128)
at com.plusonelabs.calendar.calendar.CalendarEventProvider.createEventList(CalendarEventProvider.java:61)
at com.plusonelabs.calendar.calendar.CalendarEventProvider.getEvents(CalendarEventProvider.java:49)
at com.plusonelabs.calendar.calendar.CalendarEventVisualizer.getEventEntries(CalendarEventVisualizer.java:131)
at com.plusonelabs.calendar.EventRemoteViewsFactory.onDataSetChanged(EventRemoteViewsFactory.java:123)
at android.widget.RemoteViewsService$RemoteViewsFactoryAdapter.onDataSetChanged(RemoteViewsService.java:142)
at com.android.internal.widget.IRemoteViewsFactory$Stub.onTransact(IRemoteViewsFactory.java:49)
at android.os.Binder.execTransact(Binder.java:338)
at dalvik.system.NativeStart.run(Native Method)

Events that last for one day from midnight to midnight have a wrong time indication

An event that lasts from day one 0:00 to day two 0:00 is displayed as a spanning elements over two days which could be okay. A better approach would be to only show it as an event on day one.

In addition to being a spanning event, the day one event is shown as an all day event without any time and the day two event is shown as an event with the time being two arrows.

Some devices crash when adding new events via the widget

The intent used to create new events is only supported on devices with the stock calendar app. The following intent should be more compatible.

Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");

NPE in calendar preferences screen when no calendar exists

java.lang.RuntimeException: Unable to resume activity {com.plusonelabs.calendar/com.plusonelabs.calendar.CalendarConfigurationActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2568)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2596)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2110)
at android.app.ActivityThread.access$600(ActivityThread.java:133)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4587)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.plusonelabs.calendar.prefs.CalendarPreferencesFragment.populatePreferenceScreen(CalendarPreferencesFragment.java:49)
at com.plusonelabs.calendar.prefs.CalendarPreferencesFragment.onResume(CalendarPreferencesFragment.java:44)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:873)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1014)
at android.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1779)
at android.app.Activity.performResume(Activity.java:4549)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2558)
... 12 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.