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
tree: ee7c1f5651fe76606036ee7cf108551720b4f6ce
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml
  6. PREUPLOAD.cfg