piacentecristian/Locast-Android — comment on commit be66fb7a92f19a022d50c9b7ea3d8c39b988ccd3
File: src/edu/mit/mobile/android/locast/ver2/itineraries/ItineraryDetail.java line 137
By xxv:

It'd really make much more sense if all this logic was encapsulated in some form of helper class that can provide state information to the NotificationProgressBar.

Android does this, for example, with frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java where it has a BroadcastReceiver that is passed views that the receiver knows how to update. That way, all the logic isn't duplicated and there's only ever one receiver to update if anything needs to be debugged.