Commit Graph

593 Commits

Author SHA1 Message Date
Timi Rautamäki
7ffdf8d12c SUW: fix setting USER_SETUP_COMPLETE
This setting needs to be set per user.

Change-Id: I5a312fab472d4d5f5bbe8424ddff6f34148ce69f
2022-04-13 10:31:56 +00:00
Asher Simonds
36fc88f9d2 SetupWizard: Bring in the new icon
* Part of the new iconset made by Asher Simonds

Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: If38285b09a79a0eceffda0cac83dcabfe22435c2
2022-04-06 23:14:45 +02:00
Michael Bestas
91dbfcb4e5 Automatic translation import
Change-Id: I73c74e36c98a77891a9c5c11950d9fb0e87db424
2022-04-05 23:20:53 +02:00
Alessandro Astone
0fa841744c NavigationSettings: Show the checkbox if requested during the hide animation
Change-Id: I17529b1db1aa7a59218828a31a36de0da1d884a9
2022-04-04 17:33:29 +02:00
Bruno Martins
2c963229ec SetupWizardUtils: Remove unused isMobileDataEnabled method
Last usage was before commit 334cd1b.

Change-Id: Ic59a47a62bb439db5d7859ea136c3334ae5257fa
2022-03-30 21:22:07 +01:00
Bruno Martins
7055198597 NavigationSettings: Make use of SetupWizardUtils#isPackageInstalled
No need to have duplicated code.

Change-Id: Ib03a2591fc5d5f7a10f5891c9e86738d58832a0f
2022-03-22 22:27:08 +01:00
Erfan Abdi
618dfb2c8a SUW: Redesign Welcome page based on Pixel
Change-Id: I2080c4d22fd5d0af1b1060f86ce1be0b7469757c
2022-03-20 14:07:30 +01:00
Erfan Abdi
c0f54a310d SUW: Set button themes
Change-Id: I7309e1e469f5c12e100e360e3e8414564a177af6
2022-03-20 14:07:30 +01:00
Erfan Abdi
ce45ea1208 SUW: Enable partner resources and switch to DayNight
Change-Id: I6c6b018a50bb987cdf1d8bf5c0f398723f2ad057
2022-03-20 14:07:30 +01:00
Timi Rautamäki
e83f9e12a1 SUW: add page for navigation mode
Skip the page if device has HW-keys and does not enable software keys.

Change-Id: I9efb49ddb1c2a101e6395c9034eacbeb0cfec6b6
2022-03-20 14:07:30 +01:00
Michael W
563a38c121 SetupWizard: exit_wizard.sh: Don't throw errors
* Instead of showing an exception when exiting the SuW via the script,
  check if we have to enable and run the Google SuW stuff and only do
  it then

Change-Id: I628e1ee40a97db9af1975825f059227446a9ee18
2022-03-20 14:06:46 +01:00
Timi Rautamäki
08d08bed26 SUW: use Lineage accent on logo
Don't use dynamic coloring on the LineageOS logo.

Change-Id: I51b6150e2c914bf7bcba7cc895ea9075a141e3b2
2022-03-16 18:40:31 +00:00
RKBDI
970967836b SUW: Drop SIM card tray illustration hint all together
* Hard to view on dark mode and it's redundant as
   another SIM icon exists on the page. We can't really
   have an "illustration" for a generic ROM as every
   device is different and doesn't have SIM in the same
   place.

Change-Id: I443360e5b75aded8645e83365cc64641e6c5638e
2022-03-10 18:12:58 +01:00
Alexander Koskovich
9eaa10c4a9 SUW: Support dark mode by default
Change-Id: Id176eb246c0b9b92456a39f295cc8251033ea987
2022-03-08 09:25:22 -07:00
Sean McCreary
9959594af9 SUW: add missing navigation bar in landsape layout
Add a navigation bar to the landscape orientation layout for the
'SIM missing' activity

Change-Id: Ic04b98e1891c9f411e658389168a45fc4fd7a103
2022-02-13 02:56:17 +01:00
Timi Rautamäki
c893e61bc9 SUW: proceed on click in language selector on TV
Change-Id: Idd4512283c18521c061dc6022fb7f2bfb5c96d7d
2022-01-27 15:41:52 +00:00
Timi Rautamäki
daef80ecaf SUW: improve navigation on D-pad devices
* Set the initial focus on a usable view instead of a whole layout.
* Set the next focus of the locale selector to next-button.

Change-Id: I4a16127c24e87b52e38892882e44b3a8d24b779b
2022-01-15 22:24:59 +00:00
Timi Rautamäki
b416c33ab6 SUW: update TV theming for 12
* setupdesign now uses a layout-land
* Rearrange welcome activity
* Add a padding of 56dp for each activity based on
  external/setupdesign/main/res/values/dimens.xml
  ´sud_glif_icon_margin_top´

Change-Id: I77ec3d1c3d62a66aeb76233eccafbea96804e701
2022-01-15 22:24:59 +00:00
Timi Rautamäki
3ca81566d1 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
2022-01-15 22:24:58 +00:00
Michael Bestas
3d7c828448 Update wizard scripts for 12
Change-Id: I712c8bab09392ef51d334b04907d399d0841a5c8
2022-01-13 21:19:59 +01:00
Timi Rautamäki
86e4dc4861 SUW: remove EXTRA_THEME flags
Let Settings return the default theme.

Change-Id: Ifbd0e85e8ec8317d1a6b834cbe377943ffd8a0aa
2022-01-13 13:49:59 +01:00
Timi Rautamäki
0def1c4d18 SUW: use accent_device_default_light as accent
Use accent_device_default_light as accent instead of hardcoded accent.

Change-Id: I625786dc2fd1b407624f19b7e212fe687bbabd50
2022-01-13 12:32:45 +01:00
Timi Rautamäki
fead20a238 SUW: update theming for 12
Change-Id: I9ae3849f0cba92018a6f2b436a429f595ba307a6
2022-01-13 12:32:45 +01:00
Michael Bestas
7ad9eea889 Automatic translation import
Change-Id: I5e918d38e0f932f65d1b06a883f9f317b07d9ae8
2022-01-12 15:46:52 +02:00
Chirayu Desai
ef59e075f8 tests: Add uses-library information
Change-Id: Ice5f0a2cd0a52ec2f088da50c62993e2d56d1ee9
2021-12-29 01:05:25 +02:00
Michael Bestas
9c4edc08b4 Temporarily remove broken captive portal code
Change-Id: I8afce8bbc5b504e1376c62aec9e8c2aa39eedc00
2021-12-29 01:05:24 +02:00
Michael Bestas
334cd1bce7 Changes for new network setup flow
* Remove mobile data/choose data sim pages
* Rename Wi-Fi setup to network setup
* Switch to the new NetworkProviderSettings which contains
  both Wi-Fi and mobile data setup.

Change-Id: I1c618d629628740e39dbed313d468d1efe971ed7
2021-12-29 01:05:24 +02:00
Timi Rautamäki
0e9b6ebcbf SUW: remove restore page on TV for now
It's not possible to enter the Seedvault PIN on TV

Change-Id: I5feb097c170ee1a25e775cf38a33fa09754b7a28
2021-12-01 19:40:16 -05:00
Timi Rautamäki
7560c3b0b6 SUW: use https for privacy policy link
Change-Id: I6cbdb30f08c16233cf75af6bb407974411002dcf
2021-12-01 19:40:09 -05:00
Timi Rautamäki
9b2f137fb6 SUW: show the link to privacy policy
Change-Id: Icd1d193b74db963a12262deca0e6fbb028d4d504
2021-12-01 19:40:01 -05:00
Timi Rautamäki
829c0d85c9 SUW: remove privacy policy link on large-notouch
TV's don't have any way to open links.

Change-Id: Ia7123e37668199b76e1e12803223b1cef4e25175
2021-12-01 19:28:35 -05:00
Timi Rautamäki
161a3a68a6 SUW: update lineage_wizard_script for TV
Removing following pages:
 * datetime
 * sim_missing
 * choose_data_sim
 * enable_mobile_data
 * location_settings
 * biometric_settings
 * lockscreen_settings

Change-Id: I29a9bd3011ecac1a582e5d3f533f7a98888edc97
2021-11-19 12:31:17 -05:00
Timi Rautamäki
3282e73de7 SUW: use DayNight theme for TV
* As the TvSettings are always dark too, it looks better to follow it.

Change-Id: Ifa3d2f21b18ffb3bcc791205c271f76221db2a95
2021-11-19 12:19:41 -05:00
Timi Rautamäki
40215f654c SUW: update Wifi setup for TV
* Enable skipping Wifi setup on TV

Change-Id: I252a0d901a0a49e3919f7d1076fe8649f9507196
2021-11-19 12:18:05 -05:00
Timi Rautamäki
dde31123ba SUW: layout for TV
* Hide the layout with emergency call and accessibility options.
* Make the brand logo 80% of the view height to avoid scrolling.

Change-Id: I2d56129331c0ebb9d4b9273308ec2a0fa163f4b6
2021-11-19 12:16:14 -05:00
Timi Rautamäki
21b49c9e51 SUW: remove translations for updated strings
Change-Id: Ie20e4a10a844c3ac5d39ce5a902cd93d09e869e5
2021-10-15 14:34:44 +00:00
Michael Bestas
f103c56988 Add exported flags in manifest
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present

Change-Id: I2ce2b2cd1dcd69e343ae8577587483b19d825fdc
2021-10-15 14:34:43 +00:00
Michael Bestas
7d134a7047 LocalePicker: Use DecimalFormatSymbols instead of using LocaleData
* LocaleData is not accessible anymore, use the public API provided by ICU4J.

Change-Id: Ie7b60f7acd2babd417b7840dc116a839debe6cd0
2021-10-09 18:26:27 +03:00
Michael Bestas
dd2b20274a SUW: Remove old accessibility toggle
* This has been replaced by a different gesture in 2016

Change-Id: I86aa43f52077c1f82150eb0ddb4b59ba99005e6e
2021-10-09 18:26:27 +03:00
Michael Bestas
070a852f7d SUW: Remove hardcoded string references to LineageOS
* Use os_name string

Change-Id: I1d59482122d85e39aaa4cbf15ac9e43b8598251d
2021-09-22 03:14:58 +03:00
Michael Bestas
79ce7a4f62 SUW: Remove unused strings
* The relevant code has been removed in 2016

Change-Id: Ib33c38257a45ec914ead5e8943de4e64936ec5c2
2021-09-22 01:29:11 +03:00
Alessandro Astone
841512bf66 SUW: Move re-enabling of status bar to FinishActivity
This is always run both in the GMS and non-GMS flows

Change-Id: If70aa4cec640bacaf7b03da505b90d6c3c5aaf8e
2021-09-05 12:12:52 +02:00
Alessandro Astone
367f321410 SUW: restore: Handle RESULT_SKIP from Seedvault
Change-Id: I634f57ba88e8b1406db90f2f2851d60c0c5a0a0b
2021-09-05 11:25:13 +02:00
Timi Rautamäki
4ce5316a37 SUW: FinishActivity: hide navigation bar & statusbar before animation
Change-Id: Ia9d421a3f63469645f19acd91f72d472573e8818
2021-09-03 11:58:29 +00:00
Michael Bestas
b3789b806f SUW: Intent changes for new Wi-Fi setup flow
Change-Id: Ib79c7e709443eea9ec202efd1279dafcfb7951ad
2021-09-03 11:58:29 +00:00
Michael Bestas
b7b34b96a9 The big code style cleanup
* Format using AOSP code style in Android Studio,
  excluding `Rearrange entries` option.
* Rename static variables to use proper naming scheme
* Remove empty lines

Change-Id: I0d193e35f071bc288050e587b1693844d68865e1
2021-09-03 11:58:29 +00:00
Michael Bestas
ade1361e3b Remove whitespace
Change-Id: Iaf9a56b1f8646bff8eb505050f15c24626acf47d
2021-09-03 11:58:29 +00:00
Michael Bestas
8723edec03 Ensure all files have a newline at the end
Change-Id: I55990ff367addbc24b34abe8da7fa6d52604a0d2
2021-09-03 11:58:29 +00:00
Timi Rautamäki
f6dbf84363 SUW: add accessibility settings to welcome page
Added icon is from https://materialdesignicons.com/.

Change-Id: I21daa20c59f3deb7ef862fdbe7f7ce9262094c9a
2021-09-03 11:58:29 +00:00
Timi Rautamäki
ab4f1231ae SUW: rearrange welcome activity
Hide navigation bar and relocate buttons

Change-Id: I0202c18dbcf08bac31707b7b43f10b59d88be7f2
2021-09-03 11:58:29 +00:00