summaryrefslogtreecommitdiff
path: root/src/com/android
AgeCommit message (Collapse)Author
2021-04-16Merge "Make THEME_CATEGORIES public" into sc-devTreeHugger Robot
2021-04-15Merge "Do not initialize Wallpaper delegate always without forcing refresh" ↵TreeHugger Robot
into sc-dev
2021-04-15Remove the bottom action bar from the wallpaper selecting pageChuck Liao
Bug: 185308659 Test: manual Change-Id: I817ae35a9349e400d81a59de26ed5d617e329fc4
2021-04-15Merge "Fix horizontal and vertical padding for options" into sc-devPierre-Louis Guidez
2021-04-15Merge "Add containsOption method to OptionSelectorController" into sc-devTreeHugger Robot
2021-04-14Make THEME_CATEGORIES publicSantiago Etchebehere
Bug: 182345292 Test: n/a Change-Id: Ib6cd18c8633a74ba207f345692b2ccd2357e7adf
2021-04-14Add containsOption method to OptionSelectorControllerSantiago Etchebehere
And clean up the generics usage. Bug: 185419553 Test: manual Change-Id: I7b1e0cb565b19eab1b4abbe9f5eb9cb43f30cfd2
2021-04-14Do not initialize Wallpaper delegate always without forcing refreshSantiago Etchebehere
As pointed by chuckliao@ in in ag/14142321, it was not correct to default to false for forceCategoryRefresh Bug: 155931313 Test: manual Change-Id: Ic6a87de13d8144517a4da0bfb1e1368b1f6903a4
2021-04-15Add edge-to-edge effect for grid pickerChihhang Chuang
Screenshots: - Mock: https://screenshot.googleplex.com/5GZPCniwyjZHUif.png - Before: https://screenshot.googleplex.com/A4urU58jTrmdTx2.png - After: - 3 buttons: https://screenshot.googleplex.com/7sBqvyN5xNf6p74.png - Gesture: https://screenshot.googleplex.com/7qYx3Mb25QmGePM.png Bug: 185293474 Test: manual Change-Id: Ifa9c1eb40c4553638d667150f2f38483f1f3d5f9
2021-04-14Fix horizontal and vertical padding for optionsPierre-Louis
Screenshot (large): https://screenshot.googleplex.com/9878yWwEZzQFeWE.png Screenshot: https://screenshot.googleplex.com/5ZrnUWLti6PuC3x.png Fixes: 185319447 Test: Manual & Build Pass Change-Id: If896369a9710be04653471b1dce381e88e2a5ba7
2021-04-13Apply styling to gridPierre-Louis
Screenshot: https://screenshot.googleplex.com/8ip2QAavgHmLbcS.png Screenshot (large display size, 4th option available upon scrolling): https://screenshot.googleplex.com/5fMWNR2A9qdF4zf.png Not restricting the preview height by preview_pager_max_height or dimen/preview_pager_maximum_height_ratio yielded better and more consistent results at different display sizes. Bug: 181103476 Test: Manual & Build pass Change-Id: I8212277b0cb46d0fc74b5e8eedd937ab3a216418
2021-04-11Update up arrow behaviorKunhung Li
- Enable up arrow for fragments. - Apply up arrow for coming from home case. Bug: 177638480 Test: manual Change-Id: I7f0e9343732fc4d358680106c4070281af8ab686
2021-04-10Merge "Update call to WallpaperPickerDelegate.initialize" into sc-devTreeHugger Robot
2021-04-10Remove the GridFragmentHost pattern for GridOptionsManagerChihhang Chuang
There are several places new GridOptionsManager across activities, so the pattern of GridFragmentHost makes code complexity. Also reduce a lot of duplicated code for creating GridOptionsManager. Bug: 184128735 Test: Manual Change-Id: I46c38025896fd85bdf18af18dbfbd7f8107628e1
2021-04-09Update call to WallpaperPickerDelegate.initializeSantiago Etchebehere
If we pass "false" it has the same effect of what we were doing before (that is, only reload if not initialized) Bug: 155931313 Test: manual Change-Id: I8135ae48c60db009f53252828e242d1af3b1248a
2021-04-08Update to use the new WallpaperConnectionSantiago Etchebehere
And get rid of LiveTileOverlay Bug: 179127643 Test: manual Change-Id: I6ef28f93a05bf11923891e5648c97da144a5ce26
2021-04-01Merge "Add alternative checkmark for currently selected option" into sc-devTreeHugger Robot
2021-04-01Add alternative checkmark for currently selected optionSantiago Etchebehere
Bug: 181111177 Test: manual Change-Id: I990b7a50860093ed5031db1772ab35e2239748c5
2021-04-01Log WPPG launch source (2/2)Wesley.CW Wang
- Log the launch source when launched by settings search Bug: 183071440 Test: m -j40; manually Change-Id: I391b5ead24d54b5127fa6d9977b3c1b74128078f
2021-03-24Add color parsing method.Santiago Etchebehere
Bug: 181110703 Test: manual Change-Id: I5ffecf861d4b2c7be0949780c6d0faf486a7daab
2021-03-24Add up arrow for action barKunhung Li
- Implement AppbarFragmentHost for activity. - Inherit onBottomActionBarReady parent function to hide back button if back arrow exists. Bug: 177638480 Test: Manual Change-Id: I75ef8626126bd4583d5dfa864e9adb02292db285
2021-03-22Fix the null pointer exception after applying a wallpaper.Chuck Liao
Bug: 183385553 Test: Manual Change-Id: I769dc8914281a1d393038a1afa9cb0cc989e7071
2021-03-18Let the wallpaper category list page(CategorySelectorFragment) can be ↵Chuck Liao
attached to not only fragment but also activity independently. Bug: 181299737 Test: Manual Change-Id: Id2342d4a3ac65f5cbfe9b1e89df21415d7165650
2021-03-04Launch the new Customization picker (extended)Ching-Sung Li
Launch the new Customization picker by checking enabled system property (extended). Bug: 179129798 Test: Manual Change-Id: I8016e54e423938bf52efe6e0e9dd2a9cbc9c1fce
2021-02-09Add infrastructure for extra customization sectionsChing-Sung Li
Bug: 175869253 Test: Build WPPG and install to run Change-Id: Ib0c1edb0e1b0529bd3326f8d4df502f4dfc56b76
2021-01-29Fix Talkback didn't speak "double-tap to activate" when focus on the "style ↵Chuck Liao
preview" in "custom style name" page. Reason: The card view which Talkback focused on is not clickable. Solution: Set the click listener on this card view instead of its child view. (Like what we did in ThemeFragment and GridFragment) Result video: https://drive.google.com/file/d/1bCDhjEIPiSc67O4r_Lu_nCcm7iberD-S/view?usp=sharing&resourcekey=0-7KHLTpmlYWvPygN7w4oyNg Bug: 178355698 Test: Use Talkback to focus on the "style preview" in "custom style name" page. It should speak "double-tap to activate" now. Change-Id: If4842fdfbae1bbd80b3ad05d1648d71a7a544515
2021-01-27Updating to protoliteSunny Goyal
Test: Presubmit Bug: 178631736 Change-Id: I289034559aa96e62ca4a319b19a0204dde96d853
2021-01-19Fix loading thumbnail with destroyed ActivityChing-Sung Li
Check and bypass loading thumbnail if Activity is destroyed. This prevents exception in loading thumbnail without considering Activity's lifecycle. Bug: 177446199 Test: Manual Change-Id: I8afd3946d194162cf9ee89aa55cff1ae685f827e
2020-12-30Fix can't find default theme bundle for some specific languages.Chuck Liao
It's because the translation of R.string.default_theme_title in some language is different with the title of the default theme bundle. Change the logic of finding default theme bundle to get rid of string comparison. Bug: 176087825 Change-Id: I471a711ad51515c8b4586b4e8a9b1e8e88b5b7d4
2020-12-23Add a placeholder package change event listener.Chuck Liao
Bug: 172188327 Change-Id: Ibde74630db19cbbedc50f7cf6a20d3021ad75469
2020-12-17Unregister the package event listeners when they are not used.Chuck Liao
Bug: 175867467 Change-Id: I60e137732bd2c50097ad5d76e2243ad24f4cf8c7
2020-12-16Fix the app crash when applying the wallpaper which doesn't have the ↵Chuck Liao
collection id. Ex. the default system wallpaper(the pink wallpaper) Bug: 172529099 Change-Id: I162ceba7d892d21236f3fa7fb2bc14cec9cf8026
2020-12-10Fix TalkBack can't say in "Name your style" pageKunhung Li
Override getAccessibilityTitle() and define related accessibility strings to let TakbackBack speak out each custom style page. Video: https://drive.google.com/file/d/1dOBKrfmr7PkrPLTp0XQta3co1GQpSdeN/view?usp=sharing&resourcekey=0-CW-4b9ZT5eMAEWmnqVnlNw Bug: 174213366 Test: Manual Change-Id: Ic41b5d0e6df43fbccfc2e31c7b9fce9a50b95f89
2020-12-08Fix blank bottom action bar when setting Grid after unlock screenChing-Sung Li
Post the wallpaper preview setup to message queue of UI thread to prevent race condition in layout of Grid fragment's bottom action bar. Bug: 170795716 Test: Manual Change-Id: I5b94ac71424aebf6bf7a1833ed00de22ad91b2d6
2020-11-02Adjust custom theme flow preview iconWesley.CW Wang
- Change custom icon page thumbnail icon to widget icon, make it can load the drawable from Launcher package - Change preview icon(airplane mode) to battery icon Screenshot: https://screenshot.googleplex.com/9fp9tpW7hbTeA5s.png Bug: 159376354 Test: Manually, make full rom with ag/12947502, install local WPPG and check visually Change-Id: Iba98e8bed43ca0c7a393be42061beba78e5fed9d
2020-10-12Logging WPPG launch source (3/4)Wesley.CW Wang
- Log the launch source when entering CustomizationPickerActivity Bug: 154781896 Change-Id: Iaa339a456c4bf453c6420411ed1ba9632ac4f13a
2020-09-24Properly catch exceptions am: f2a95df22aLuca Stefani
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/12673115 Change-Id: I17c67dc12d45f97c6dbf1da483d5c7b4fa6ce6e9
2020-09-24Merge "Extend SysUiStatsLog.write function" into ub-launcher3-masterKunhung Li
2020-09-23Properly catch exceptionsLuca Stefani
Test: Manual, not defining a default theme in stub provider doesn't crash app Change-Id: I2b33681cffe8670478687c06667a701bb682cf2f (cherry picked from commit 10252aa2bf4eaa4b41cced2fe9bd0962f7a61421)
2020-09-23Fetch the wallpaper category from the server instead of cache when launching ↵Chuck Liao
the app(activity). Bug: 169029398 Change-Id: I0549b2213a2567a7a46a79f0a779f08c61d0b163
2020-09-23Extend SysUiStatsLog.write functionKunhung Li
Add DatePreference parameter into SysUiStatsLog.write() Bug: 168680386 Test: build & statsd_testdrive 179 Change-Id: Ie6eb44ac71e266fb383e433f1150fcc4667dd772
2020-09-07Fix the crash when applying daily wallpaper without network connectionChuck Liao
It's because CustomizationPickerActivity is cast to BaseActivity to call isSafeToCommitFragmentTransaction(), but it is not a BaseActivity. Extract isSafeToCommitFragmentTransaction() to an interface to let CustomizationPickerActivity to implement it. Bug: 167943713 Change-Id: Idd392fbd2fbadf3d8f4d69fb68ba1ccec948306a
2020-08-20Support App LinksChuck Liao
Video: https://drive.google.com/file/d/11_MclDVE8Q_ojSYoCDxmK4Ah_FoABPhd/view?usp=sharing Bug: 163019082 Change-Id: I1aa6ca4e58aff3ad1a9067ff44fb398b1336770b
2020-08-06Fallback to static thumbnail for Live WallpapersSantiago Etchebehere
When WallpaperEngine scalePreview API is not available, use a static thumbnail for live wallpapers instead of crashing. Also refactor to extract a single WallpaperSurfaceCallback to make this simpler. Bug: 12329489 Change-Id: I7eebcab38a619cb65de9926fe3f956f069652b57
2020-07-09Change style preview info stringWesley.CW Wang
screenshot: https://screenshot.googleplex.com/p4ZDA8pVPpS.png Bug: 159627664 Test: maunally Change-Id: I4ecc709534bef0c72f70b3350d10a53997c33123
2020-07-08Fix recyclerview items setup wrong descriptionWesley.CW Wang
- Adjust the recyclerview setLayoutManager() timing, since we set it twice when using gird layout, it will mis-trigger our setContentDescription() method randomly and make some options setup wrong content description video: https://drive.google.com/file/d/1xGjw9zacgeQsPtQA7DkWo3d-TvzPUYIi/view?usp=sharing Fixes: 160761967 Test: manually Change-Id: I52eec0f40e5c65c5e520abe32a08611959ce5d13
2020-07-08Adjust custom theme flow preview page's a11y setWesley.CW Wang
- Change part of the preview layout to not import for a11y, make it won't be focused by TB - Add new content description to each preview layout video: https://drive.google.com/file/d/1JTZCv7bdRuvzbYbxJXU-yBto4UcivijA/view?usp=sharing Fixes: 160760041 Test: manually Change-Id: I70df6d74bb39f75641b8200f5ea505d9c21d2b11
2020-07-08New drawable of shaped app icon for usingchihhangchuang
Because there are two different size ImageViews using the same drawable instance, the bound size was updated to break one of the ImageView displaying. Video: https://drive.google.com/file/d/1eVzxyn1ojbWanUg47yHXA9AoKZTjXWzp/view?usp=sharing Test: Manually Fixes: 160695343 Change-Id: I27f843d21f268e5c82e9682f6af7e0aa907e00eb
2020-07-02Set default title for PreviewFragmentchihhangchuang
It seemed the better than previous way to set default title Test: Manually Bug: 160211359 Change-Id: I0e47a62488d01022baca829b618a5f41d50d74a3
2020-07-01Fix TB no response after double-tap style optionsWesley.CW Wang
- Use setAccessibilityPaneTitle to notify/update the a11y states when selecting other options. - Since we only update the state to our structure not original android components, recyclerview option's state(isSelected) won't be updated when selected. By default, TB will announce "selected" after selecting new options, but we custom it and not following default behavior(by setting extra content description to make it announce "currently previewed"), need to setup the a11y panel title to make it update the a11y states then TB will announce it after selected. video: https://drive.google.com/file/d/1Q2pSz116JL0bg7HpK3ULoTUhpXTyZoWo/view?usp=sharing Bug: 157004966 Test: manually Change-Id: Ib96e0d1013a000022d85df2840e8680e564b844b