Exemplo n.º 1
0
 @Provides
 @PerApp
 @ScalpelWireframeEnabled
 Observable<Boolean> provideObservableScalpelWireframeEnabled(RxSharedPreferences preferences) {
   return preferences.getBoolean(
       "debug_scalpel_wireframe_drawer", DEFAULT_SCALPEL_WIREFRAME_ENABLED);
 }
Exemplo n.º 2
0
 @Provides
 @PerApp
 RxSharedPreferences provideRxSharedPreferences(SharedPreferences preferences) {
   return RxSharedPreferences.create(preferences);
 }
Exemplo n.º 3
0
 @Provides
 @PerApp
 @PixelRatioEnabled
 Observable<Boolean> provideObservablePixelRatioEnabled(RxSharedPreferences preferences) {
   return preferences.getBoolean("debug_pixel_ratio_enabled", DEFAULT_PIXEL_RATIO_ENABLED);
 }
Exemplo n.º 4
0
 @Provides
 @PerApp
 @ScalpelEnabled
 Observable<Boolean> provideObservableScalpelEnabled(RxSharedPreferences preferences) {
   return preferences.getBoolean("debug_scalpel_enabled", DEFAULT_SCALPEL_ENABLED);
 }
Exemplo n.º 5
0
 @Provides
 @PerApp
 @PixelGridEnabled
 Observable<Boolean> provideObservablePixelGridEnabled(RxSharedPreferences preferences) {
   return preferences.getBoolean("debug_pixel_grid_enabled", DEFAULT_PIXEL_GRID_ENABLED);
 }