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

This commit is contained in:
Brandon Dayauon
2023-01-25 21:38:17 +00:00
committed by Android (Google) Code Review

View File

@@ -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());
}