Emre Hamurcu
Nov 1, 2022

--

I think using delegation is a proper way to handle this. You don't need not write copy paste callbacks for every fragment , also delegation is an alternative for inheritance so we can say our fragment has a onbackpressed talent. Your solution also acceptable thanks for reply 😇

--

--

Emre Hamurcu
Emre Hamurcu

Written by Emre Hamurcu

Senior Android Developer & Youtuber

No responses yet