Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14393a5f authored by SongFerng Wang's avatar SongFerng Wang Committed by Gerrit Code Review
Browse files

Merge "Fix SmartForwardingActivity crash at screen rotation" into main

parents 9befb6cd 64f4619d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -48,8 +48,7 @@ public class SmartForwardingFragment extends PreferenceFragmentCompat
    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) {