commit | bce8fc79e879eaa06b91063ee5ddbf2e4623944d | [log] [tgz] |
---|---|---|
author | SongFerng Wang <songferngwang@google.com> | Fri Jul 19 05:55:14 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Jul 19 05:55:14 2024 +0000 |
tree | 54e1f45f9a6367d5b3b0f47ace4872ca2ec8e2bd | |
parent | e910d895f1d8caa1d66397ebcd7a102eb8b065e5 [diff] | |
parent | 14393a5f06485d3074bb7b84ed954b3ee0c0ae16 [diff] |
Merge "Fix SmartForwardingActivity crash at screen rotation" into main am: 14393a5f06 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2855525 Change-Id: Ieb6ffb8c2f479ffcc30d60440df649618074e420 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/settings/sim/smartForwarding/SmartForwardingFragment.java b/src/com/android/settings/sim/smartForwarding/SmartForwardingFragment.java index a95eb38..f847147 100644 --- a/src/com/android/settings/sim/smartForwarding/SmartForwardingFragment.java +++ b/src/com/android/settings/sim/smartForwarding/SmartForwardingFragment.java
@@ -48,8 +48,7 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { setPreferencesFromResource(R.xml.smart_forwarding_switch, rootKey); - String title = getResources().getString(R.string.smart_forwarding_title); - getActivity().getActionBar().setTitle(title); + getActivity().setTitle(R.string.smart_forwarding_title); TwoStatePreference smartForwardingSwitch = findPreference(KEY_SMART_FORWARDING_SWITCH); if (turnOffSwitch) {