Notify the current fragment of ux restrictions when restoring it from the backstack.
BasePreferenceFragment worked around this by fetching the current restrictions on each start. SettingsFragment fetches an inital state when attached and expects the OnUxRestrictionsChangedListener callback to be called appropriately. In an ideal future, fragments would be able to register as direct listeners to changes.
Bug: 112931076
Test: build and deploy, change driving restrictions while varying the back stack depth.
Change-Id: I9319a2f2deeb5c776bdf814bc1c403123d6a63af
2 files changed