Skip to content

Commit f54ed82

Browse files
committed
refactor(headlines-search): update HeadlinesSearchBloc ad theme parameter
- Change event.theme to event.adThemeStyle in two locations within HeadlinesSearchBloc - Update parameter name to reflect more specific use case and improve code clarity
1 parent 68858e2 commit f54ed82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/headlines-search/bloc/headlines_search_bloc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class HeadlinesSearchBloc
116116
adConfig: appConfig.adConfig,
117117
imageStyle:
118118
_appBloc.state.settings.feedPreferences.headlineImageStyle,
119-
theme: event.theme,
119+
adThemeStyle: event.adThemeStyle,
120120
// Calculate the count of actual content items (headlines) already in the
121121
// feed. This is crucial for the FeedDecoratorService to correctly apply
122122
// ad placement rules across paginated loads.
@@ -224,7 +224,7 @@ class HeadlinesSearchBloc
224224
adConfig: appConfig.adConfig,
225225
imageStyle:
226226
_appBloc.state.settings.feedPreferences.headlineImageStyle,
227-
theme: event.theme,
227+
adThemeStyle: event.adThemeStyle,
228228
);
229229
case ContentType.topic:
230230
rawResponse = await _topicRepository.readAll(

0 commit comments

Comments
 (0)