commit | 38fa2c195d2c24f5d8941895ca6d124ea1ab05e2 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Fri Dec 10 17:01:15 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 10 17:01:15 2021 +0000 |
tree | d172af478733de1034f35fa1b057508f0cab4f43 | |
parent | 0bf0a9acf9aceed96f42099154db2fe6932314a2 [diff] | |
parent | 5302093d5c243207752fe3df27fa78737e4e432b [diff] |
Merge "Fix the onCreate crash happened among zen mode rule pages" into sc-v2-dev am: 56c49091a0 am: 5302093d5c Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16432138 Change-Id: Ieba60e9cebdc683fbaa8e382a80d9e4efe666c8f
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() {