Fix preference screen title to make folded devices the same as phone
Now it says "Search your Phone" on folded devices instead of "Search your tablet" when unfolded bug: 265610885 test: Manually - on foldables and tablets Change-Id: I39ee08539b70b2e7258bca86b1450c62c75f748f
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user