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

NetworkCallBack Interface + General SnackBar Utility (Revised pr) #42

Closed laavanyebahl closed 7 years ago

laavanyebahl commented 8 years ago

Issue no #15 Revised

API exception and type checked while syncing Interface for NetworkCallBack Callback implemented in DashboardViewPager General Reusable SnackBar Utility

ff

laavanyebahl commented 8 years ago

@ArazAbishov I've triggered the callback as soon as the exception is caught to avoid using the static handleAPIexception method. setNetworkCallback() could've been added in NetworkUtils and callNetworkCallback() method could've been called by static handleAPIexception() method, but that would require a new instance of the class, leaving the interface uninitiated.