mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Fix preference screen title to make folded devices the same as phone" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5809508f25
@@ -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