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

Commit 5809508f authored by Brandon Dayauon's avatar Brandon Dayauon Committed by Android (Google) Code Review
Browse files

Merge "Fix preference screen title to make folded devices the same as phone" into tm-qpr-dev

parents 8653f148 e530801f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -226,9 +226,10 @@ public class SettingsActivity extends FragmentActivity
                        getResources().getString(R.string.search_pref_screen_title))){
                    DeviceProfile mDeviceProfile = InvariantDeviceProfile.INSTANCE.get(
                            getContext()).getDeviceProfile(getContext());
                    getPreferenceScreen().setTitle(mDeviceProfile.isTablet ?
                            R.string.search_pref_screen_title_tablet
                            : R.string.search_pref_screen_title);
                    getPreferenceScreen().setTitle(mDeviceProfile.isMultiDisplay
                            || mDeviceProfile.isPhone ?
                            R.string.search_pref_screen_title :
                            R.string.search_pref_screen_title_tablet);
                }
                getActivity().setTitle(getPreferenceScreen().getTitle());
            }