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>
This commit is contained in:
@@ -48,8 +48,7 @@ public class SmartForwardingFragment extends PreferenceFragmentCompat
|
|||||||
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
|
||||||
setPreferencesFromResource(R.xml.smart_forwarding_switch, rootKey);
|
setPreferencesFromResource(R.xml.smart_forwarding_switch, rootKey);
|
||||||
|
|
||||||
String title = getResources().getString(R.string.smart_forwarding_title);
|
getActivity().setTitle(R.string.smart_forwarding_title);
|
||||||
getActivity().getActionBar().setTitle(title);
|
|
||||||
|
|
||||||
TwoStatePreference smartForwardingSwitch = findPreference(KEY_SMART_FORWARDING_SWITCH);
|
TwoStatePreference smartForwardingSwitch = findPreference(KEY_SMART_FORWARDING_SWITCH);
|
||||||
if (turnOffSwitch) {
|
if (turnOffSwitch) {
|
||||||
|
Reference in New Issue
Block a user