[Android] Clean up how arguments are passed to Preference fragments
1. Revised how Preferences activity gets argument bundle to pass to a subpage fragment. PreferencesLauncher methods got Bundle argument, so EXTRA_SHOW_FRAGMENT and EXTRA_SHOW_FRAGMENT_ARGUMENTS are package-private now. 2. The type of PreferencesLauncher.launchSettingsPage fragment parameter is changed to Class<? extends Fragment> to get compile-time checks. 3. A bunch of callers are changed to use launchSettingsPage instead of createIntentForSettingsPage followed by startActivity. 4. DataReductionPreferences and PasswordEntryEditor now get their parameters using fragment arguments instead of intent extras. Bug: None Change-Id: Ic0ae700149d721ab9194ed36c311c8f8b47bea1e Reviewed-on: https://chromium-review.googlesource.com/c/1323071Reviewed-by:Ted Choc <tedchoc@chromium.org> Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#606404}
Showing
Please register or sign in to comment