Back to project page iEtueri.
The source code is released under:
GNU General Public License
If you think the Android project iEtueri listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package schedule; /*ww w . j av a 2s . c om*/ import java.util.ArrayList; import today.TodayFragment; import android.app.Activity; public class FindEvents implements Runnable { private Activity activity; private ScheduleTodayAdapter adapter; private ArrayList<Event> events; private int year; private int month; private int day; private boolean inDayView; public FindEvents(Activity activity, ScheduleTodayAdapter adapter, ArrayList<Event> events, int year, int month, int day, boolean inDayView) { this.activity = activity; this.adapter = adapter; this.events = events; this.year = year; this.month = month; this.day = day; this.inDayView = inDayView; } @Override public void run() { while (!RefreshScheduleEventsData.isThreadFinished()) { try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } events = EventsManager.find(activity, year, month, day); adapter.setItems(events); if (!inDayView) ScheduleFragment.updaterHandler.sendEmptyMessage(RefreshScheduleEventsData.CALENDAR_DATA_CHANGE); else TodayFragment.updaterHandler.sendEmptyMessage(RefreshScheduleEventsData.CALENDAR_DATA_CHANGE); } }