Commit Graph

12 Commits

Author SHA1 Message Date
Chaohui Wang
9ab4ef224e Hide Show System on SPA version App languages
To align with non-SPA version.

Fix: 285264906
Test: Visual check on App languages
Change-Id: I7f8b0aec0e33fcb46939075458a8b0a710fac640
2023-06-01 09:20:42 +00:00
Chaohui Wang
9661f163c3 Fix App languages for work profile
Use the correct work profile context to fix.

Fix: 277536202
Test: Manually with App languages when work profile is installed
Change-Id: Ibc3bb47127228c8dc6ebf073cd7881727321d5c8
2023-04-10 13:32:24 +08:00
Josh Hou
38df174bba [Panlingual] Can't set per-app languages for apps on work profile page
Use startActivityAsUser instead of startActivity API to start the AppLocalePickerActivity of different users

Bug: 274378136
Test: 1. Perform AppLocalePickerActivityTest robolectric test
      2. Perform the manual test by switching different users
      3. Perform the manual test by switching different profiles
Change-Id: I4405b3b7e832b71b9ef66fa71d9e42ce12da167c
2023-03-21 10:57:42 +00:00
Chaohui Wang
f37d638458 Disable the middle pages during development
Set isEnabled to false will prevent these middle pages which under
development get accidentally displayed to users.

During development, please flip isEnabled() of each page to true or
flip SpaEnvironment.IS_DEBUG to true to test these pages.

Bug: 244122804
Test: Manually with Settings
Change-Id: I5c3f835cfa3457b711d224ca37aa5d2b9a248feb
2023-02-17 06:16:09 +00:00
Chaohui Wang
1445d985bb Move AppItem into AppListModel
Follows the api changes in Spa privileged lib.

Bug: 260660819
Test: Unit test
Test: Manually with Settings
Change-Id: Ieec1035070cc532eedcd1511c5b347e04099a9fb
2022-12-15 12:32:54 +08:00
Chaohui Wang
2b0d5f0998 Clean up forked collectAsStateWithLifecycle
Use the the one from androidx.lifecycle.compose instead.

Bug: 236346018
Test: Unit test
Change-Id: Idb681ad3f2fed10fed5b9f7625511566e5b88877
2022-12-05 13:42:12 +08:00
Chaohui Wang
c2a42f2162 Update for AppListItem
Bug: 260660819
Test: Manually with Settings
Change-Id: I67b8ff2d8e280c18e191c63ca891a8d7d3706aed
2022-11-30 16:02:22 +08:00
Zekan Qian
bfac23fca3 Cleanup setIsAllowSearch in Settings Spa pages
Bug: 244122804
Test: unit-test
Change-Id: Ib690baf0d8cb669e4e58848c78f2848d40314dc0
2022-11-29 09:21:12 +08:00
Zekan Qian
8cf80a1227 Use default Page() function in spa.HomePage
Bug: 244122804
Test: build Settings
Change-Id: I700ad8d91ef6c204a3cea06ec02b40c70bb4b942
2022-11-14 13:25:53 +08:00
tom hsu
8bd5e2a52f [Panlingual] Improve performance of displaying app list in Settings.
- Use existed ApplicationInfo to get needed info.
 - Add unittest to AppLocaleUtil.java

Bug: b/238054165
Bug: b/231904717
Test: Maunal test passed
Test: atest passed
Change-Id: I23f354c366b45d4b684184b3366aeab913bcd3c8
2022-11-11 14:25:19 +08:00
Mill Chen
650fbce5d8 Add description for app languages page
Bug: 236346018
Test: manual test with Settings app
Change-Id: I011957a321ad8c26743e72cc7ce825d06dab9167
2022-11-09 12:47:36 +08:00
Mill Chen
0ee710cddd App language migration
Implement current app language page using spa arch.

Bug: 236346018
Test: manual test with Settings app

Change-Id: I3d3c97304a381acec9d9ef0c27bd047a40ffc4a8
2022-11-02 13:29:15 +08:00