commit | bd8f45b9d42b8235fcd896310c57910770b957a3 | [log] [tgz] |
---|---|---|
author | Jason Chiu <chiujason@google.com> | Fri Dec 10 11:36:55 2021 +0800 |
committer | Jason Chiu <chiujason@google.com> | Fri Dec 10 11:36:55 2021 +0800 |
tree | 325b17dfa9b77a9aa230b5fb80b924a719ebaab7 | |
parent | 0f0e27cf6ae4e86d6b285efa5ee539abc411c3c0 [diff] |
Fix the onCreate crash happened among zen mode rule pages Fix: 199229588 Test: manual Change-Id: I7b0116de8d9760f420c026a8d65b019e6d2d00df
diff --git a/src/com/android/settings/notification/zen/ZenModeRuleSettingsBase.java b/src/com/android/settings/notification/zen/ZenModeRuleSettingsBase.java index 170c699..5ce8b48 100644 --- a/src/com/android/settings/notification/zen/ZenModeRuleSettingsBase.java +++ b/src/com/android/settings/notification/zen/ZenModeRuleSettingsBase.java
@@ -59,6 +59,7 @@ @Override public void onCreate(Bundle icicle) { + super.onCreate(icicle); mContext = getActivity(); final Intent intent = getActivity().getIntent(); @@ -81,7 +82,6 @@ return; } - super.onCreate(icicle); mCustomBehaviorPreference = getPreferenceScreen().findPreference(CUSTOM_BEHAVIOR_KEY); mCustomBehaviorPreference.setOnPreferenceClickListener( new Preference.OnPreferenceClickListener() {