SUW: use Gliflayout descriptions

Set description via getGlifLayout().setDescriptionText instead of
writing it in layout to display it properly in two columns when
in landscape. No visual change in portrait.

Change-Id: I7465a7fbc5819d429bb886a5582fb1f1d4db9a47
This commit is contained in:
Timi Rautamäki
2022-01-15 16:42:42 +00:00
parent 3d7c828448
commit 3ca81566d1
14 changed files with 28 additions and 110 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (C) 2016 The CyanogenMod Project
* Copyright (C) 2017-2018,2020 The LineageOS Project
* 2017-2018,2020,2022 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -78,6 +78,7 @@ public class DateTimeActivity extends BaseSetupWizardActivity implements
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setNextText(R.string.next);
getGlifLayout().setDescriptionText(getString(R.string.date_time_summary));
final Spinner spinner = (Spinner) findViewById(R.id.timezone_list);
final SimpleAdapter adapter = constructTimezoneAdapter(this);