Commit Graph

482 Commits

Author SHA1 Message Date
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
Artem Borisov
fbf886e808 SetupWizard: Fix status bar managing workflow
StatusBarManager uses tokens in binder connections to identify
disable records and queue each of them accordingly. New record creates
each time an application connects to StatusBarManager and tries to change
the state. New records don't activate until previous ones are destroyed.
Records can be destroyed either when app binder dies, or when the same
binder ticket reverts its previous changes.
To accomodate this behavior, StatusBarManager was moved to a static class
that initializes first when status bar gets disabled, and then gets destroyed
when status bar is re-enabled.
While we're at it, also fix race condition between main and exit activites
by moving status bar disabling code to the application class.

Change-Id: I3b33e628da1e1881181cbe665e6aaccee3dd19ef
2021-09-03 11:58:29 +00:00
Timi Rautamäki
44fb45c421 SUW: use standard navigation method
Use software/hardware back button and add on-screen Next & Skip buttons.

Change-Id: I7bfa052f2217e51ea778df688e7169657aaad2c6
2021-09-03 11:58:28 +00:00
Timi Rautamäki
ab4d6d383f SUW: use GLIF v3 light -theme
Change-Id: I3684279ad87c82b85c93267e959e9faa2dabfdc3
2021-09-03 11:24:25 +00:00
Michael Bestas
885e3b363a SUW: Cleanup intent extras
Remove unused extras:
allowSkip: Removed in 2015
wifi_auto_finish_on_connect: Removed in 2016

Use WizardManagerHelper definitions when possible

Change-Id: I4e6a503ae030b85486921fcacfc4fe03e37c8698
2021-09-03 11:24:25 +00:00
Timi Rautamäki
5e2f7f2dfe SUW: use setupdesign layout & theming
Change-Id: I4841b701a8952035bd633d73368e80075d17e42a
2021-09-03 11:24:25 +00:00
Daniel Micay
d186af21f8 Replace LOCAL_MAC_ADDRESS with NETWORK_SETTINGS
ConnectivityManager.getCaptivePortalServerUrl now requires
NETWORK_SETTINGS instead of LOCAL_MAC_ADDRESS.

Change-Id: Idd9b7b683a48e49d97fca90bb62d81ee0629b672
2021-09-03 11:24:25 +00:00
Oliver Scott
7e04f9c361 Disable ChooseDataSimActivity if single SIM detected
Change-Id: I963a7b4f268698c048cf0eccb15198412b3e2ab3
2021-09-02 12:24:00 +00:00
Oliver Scott
1167c047be Fix SimMissingActivity never showing
Change-Id: I1a9d2539db96046c472f17a21932bc720c00eb26
2021-09-02 12:24:00 +00:00
Michael Bestas
c5232fcebd Rework isMultiSimDevice check
Move it to PhoneMonitor to be consistent with other checks

Change-Id: I560048ebdf318a92747a70ffb6fa8027b4589c1a
2021-09-02 12:24:00 +00:00
Michael W
8dc3cf8f47 SetupWizard: Use SettingsLib for Timezones
* Currently we are storing a copy of timezones.xml ourselves and parsing
  it manually
* Use ZoneGetter from SettingsLib instead to get the list of TimeZones
* That way we have less code to maintain and updates to the list are easier
  as well
* Also simplify constructTimezoneAdapter -> we never sort by name

Change-Id: Ifd690ed28c6fbecaee895b4063137e86c059e314
2021-09-02 12:24:00 +00:00
Michael Bestas
d23252fbc2 Automatic translation import
Change-Id: I8cea787038231d0b77ed6108fd153178a0077897
2021-08-21 04:07:27 +03:00