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