Commit 30cc9b97 authored by Mathias Carlen's avatar Mathias Carlen Committed by Commit Bot

[Autofill Assistant] Bugfix preference.

Before this patch we would add a settings entry on every resume of the activity.
This patch only adds the entry once on creation and not on every onResume.

Bug: 806868
Change-Id: I6d41d99f6f2d05ad98e306da2c6bdebed7c37722
Reviewed-on: https://chromium-review.googlesource.com/c/1318970Reviewed-by: default avatarStephane Zermatten <szermatt@chromium.org>
Commit-Queue: Mathias Carlen <mcarlen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605661}
parent ad77729d
......@@ -23,11 +23,6 @@ public class AutofillAssistantPreferences extends PreferenceFragment {
super.onCreate(savedInstanceState);
getActivity().setTitle(R.string.prefs_autofill_assistant_title);
setPreferenceScreen(getPreferenceManager().createPreferenceScreen(getActivity()));
}
@Override
public void onResume() {
super.onResume();
createAutofillAssistantSwitch();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment