gecko-dev/mobile/android/stumbler
Garvan Keeley dc56c0508f Bug 1106584 - Part 2: for safety, make explicit prefs with context getter. r=vng
Any class that has access to a context should call Prefs.getInstance(Context) which is guaranteed to return a Prefs.
With no context, classes can call Prefs.getInstanceWithoutContext() but they must null-check the return, and handle accordingly.
Fortunately, the latter case happens in very few places, all of which require no special handling of this case.

This change:
- maintains context-less access to the Prefs
- classes internal to the service can safely call getInstanceWithoutContext(), as the service (or the MainApp in the stumbler case)
will have instantiated a Prefs so that getInstanceWithoutContext() will return a prefs
- protects against null Prefs if we have failed to consider a particular entry point to the code will require that Prefs was instatiated with a context.
2014-12-11 09:06:00 -08:00
..
java/org/mozilla/mozstumbler/service Bug 1106584 - Part 2: for safety, make explicit prefs with context getter. r=vng 2014-12-11 09:06:00 -08:00
manifests Bug 1038843 - Part 1: Land initial stumbler Java code and manifest fragments. r=nalexander,rnewman 2014-08-28 17:19:00 -07:00
Makefile.in
moz.build
stumbler_sources.mozbuild Bug 1095914 - Copy over CellScanner from mozstumbler github. r=nalexander 2014-11-13 11:54:00 -05:00