@@ -5,7 +5,7 @@ import 'package:bloc_concurrency/bloc_concurrency.dart';
55import 'package:core/core.dart' ;
66import 'package:data_repository/data_repository.dart' ;
77import 'package:equatable/equatable.dart' ;
8- import 'package:flutter_news_app_mobile_client_full_source_code/ads/ad_cache_service .dart' ;
8+ import 'package:flutter_news_app_mobile_client_full_source_code/ads/inline_ad_cache_service .dart' ;
99import 'package:flutter_news_app_mobile_client_full_source_code/ads/models/ad_theme_style.dart' ;
1010import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_bloc.dart' ;
1111import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/models/headline_filter.dart' ;
@@ -154,7 +154,7 @@ class HeadlinesFeedBloc extends Bloc<HeadlinesFeedEvent, HeadlinesFeedState> {
154154 Emitter <HeadlinesFeedState > emit,
155155 ) async {
156156 // On a full refresh, clear the ad cache to ensure fresh ads are loaded.
157- AdCacheService ().clearAllAds ();
157+ InlineAdCacheService ().clearAllAds ();
158158 emit (state.copyWith (status: HeadlinesFeedStatus .loading));
159159 try {
160160 final currentUser = _appBloc.state.user;
@@ -236,7 +236,7 @@ class HeadlinesFeedBloc extends Bloc<HeadlinesFeedEvent, HeadlinesFeedState> {
236236 ) async {
237237 // When applying new filters, this is considered a major feed change,
238238 // so we clear the ad cache to get a fresh set of relevant ads.
239- AdCacheService ().clearAllAds ();
239+ InlineAdCacheService ().clearAllAds ();
240240 emit (
241241 state.copyWith (
242242 status: HeadlinesFeedStatus .loading,
@@ -323,7 +323,7 @@ class HeadlinesFeedBloc extends Bloc<HeadlinesFeedEvent, HeadlinesFeedState> {
323323 Emitter <HeadlinesFeedState > emit,
324324 ) async {
325325 // Clearing filters is a major feed change, so clear the ad cache.
326- AdCacheService ().clearAllAds ();
326+ InlineAdCacheService ().clearAllAds ();
327327 emit (
328328 state.copyWith (
329329 status: HeadlinesFeedStatus .loading,
0 commit comments