Former President Barack Obama implicitly criticized President Donald Trump’s media habits in a speech on Wednesday.

During a Splunk tech conference, Obama said it was helpful as president to have a diverse staff offering a wide range of advice on the issues of the day.

“The other thing that is helpful is not watching TV or reading social media,” he added pointedly, according to Axios.

He warned about people living in “filter bubbles” of information, made worse by social media.

“That’s not healthy for a democracy and it’s not healthy between countries,” he said. “That’s how wars get started and bad things happen.”

Obama had a history of purposefully ignoring cable news during his presidency.

During an off-the-record conversation with prominent newspaper columnists, Obama let it slip that he “doesn’t watch TV” and “doesn’t watch cable news,” a comment that leaked to the media.

In an interview with MSNBC’s Brian Williams, Obama criticized cable news for appearing fake.

“I don’t find most of the cable chatter very persuasive,” he said. “I’ve used this analogy before. It feels like WWF wrestling. You know, everybody’s got their role to play.”

White House staff at the time suggested that the former president was particularly frustrated during the campaign.

“You had primarily donors but others, too, who would get fixated by cable and get freaked out and start calling,” former press secretary Robert Gibbs told Politico in 2009.