dhis2 / dhis2-android-dashboard

:no_entry: [DEPRECATED] Android application for DHIS2 which implements basic dashboard functionality.
BSD 3-Clause "New" or "Revised" License
17 stars 47 forks source link

add and delete dashboard observe changes #30

Closed NateshR closed 7 years ago

NateshR commented 8 years ago

ViewPager observe changes now on adding and deleting dashboards. FragmentStatePageAdapter implemented. Smooth scroll to the added or removed dashboard. onLoadFinished in DashboardViewPagerFragment is called twice and it is necessary to be called twice, first when saved dashboard locally and second when synced from server. But reflecting added or removed dashboard is called once only, the second time it just updates the data in DashboardAdapter.

NateshR commented 8 years ago

Issue #1 Issue #3 EventBus is only use to notify that's there been a addition/deletion of data.

NateshR commented 8 years ago

Since, there's no id till we sync so I am left with no option then to compare with dashboard name.