Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cac4bfaa authored by Chun-Ku Lin's avatar Chun-Ku Lin
Browse files

Move ShortcutsTutorial as a standalone DialogFragment

Using a standalone DialogFragment is more flexible if we ever want to
store the UI state in onSaveInstance during fragment lifecycle.

What this cl includes:
- Move shortcuts tutorial into DialogFragment
- Clean up the dialog button click listener. We always dismiss the
  dialog
- Clean up code path that are obsolete
- Refactor the ToggleAccessibilityServicePreferenceFragmentTest

Bug:406052931
Test: Manual Clicking on the shorcut toggles on accessibility feature
screens and verify the tutorial shows up as expected
Test: atest com.android.settings.accessibility
Flag: EXEMPT refactor that won't be cleaner with feature flag

Change-Id: I944c79a1f6cee75b7bd9ecdcdd27b6faa7bd91cf
parent 5ca369a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment