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