'Handle onNewIntent in fragment after app:launchSingleTop="true"

Android navigation component has app:launchSingleTop="true" flag. According to documentation, it should work the same as FLAG_ACTIVITY_SINGLE_TOP flag. But oneNewintent isn't fired. How could I handle that my fragment was launched while being on the top of a stack?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source