summaryrefslogtreecommitdiff
path: root/src_override/com
AgeCommit message (Collapse)Author
2023-12-08Refactor WallpaperModelFactory (3/3)George Lin
This CL makes the following changes: This CL makes the following changes: 1. Created an interface WallpaperDataFactory, which is implemented by DefaultWallpaperModelFactory and GooogleWallpaperModelFactory, respectively, depending which project we include. This also avoids complex inheritence pattern, where developers need to go back and forth to know what's going on when converting. 2. Made DefaultWallpaperModelFactory and GooogleWallpaperModelFactory injectable classes. 3. Moved functions in DataFactory classes to companion extension functions. Developers do not need to look into many classes. 4. Since DownloadableLiveWallpaperInfo represents a wallpaper that's not yet downloaded, we should treat it as a static wallpaper that shows the static image. Test: Manually tested that the downloadable wallpaper shows Bug: 291761856 Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag DEVELOPMENT Change-Id: Iefc7202bcd9e963cfb3cc1c5933925f87a40d663
2023-11-21Inject WallpaperInteractor and repository (2/3)Austin Wang
Flag: ACONFIG com.android.wallpaper.multi_crop_preview_ui_flag DEVELOPMENT Bug: 303317694 Test: launch multi crop preview Change-Id: I0121da42a69d221b8f229d69607907495fac7779
2023-11-16Log color snapshot (1/2)George Lin
Test: Manually tested the log is correct Bug: 290848448 Flag: None Change-Id: Ic7ea9c4ea383f733675eca84c8d405794c6e9bfe
2023-10-19Make WallpaperModelFactory injectable (2/3)Austin Wang
Flag: com.android.wallpaper.multi_crop_preview_ui_flag Bug: 303457890 Test: build, presubmit Change-Id: I2f656a9adb54759b444f8e5648c19a338098724c
2023-10-17Make logger injectable (1/3)George Lin
Test: Manually tested logger works as expected Bug: 305069232 Change-Id: I4e83837498c23d45b66f77dfc7ecbeb037decdb7
2023-08-21Makes legacy Injector @Injectable and adds shared singleton PreferencesChris Poultney
Bug: b/294443903 Test: manually ran ThemePicker Change-Id: Ie9313d5934ea5ff9555c9c5231fcbc753beff23d
2023-07-19Add dispatcher module for Hilt injection (2/3)Austin Wang
Make Injector injectable so the existing dependencies can be access by the new classes via injecting Injector, and the existing classes can use the new class via Injector by injecting new classes into Injector. Inject dispatchers for both world. Bug: 288128417 Test: launch picker Change-Id: I05d7db38891fd5320d3efc857499e3774d8da7db
2023-06-29Enable Hilt for picker app (3/3)Austin Wang
Bug: 288128417 Test: soong build, gradle build for 3 variants, launch WP Change-Id: If9c97d30000de03c10ba6b43634ab31c45efdc75
2022-12-14Links WPP clocks flag to SysUI's flag (1/3).Alejandro Nijamkin
Bug: 261990616 Test: manually verified that setting or unsetting the flag in System UI correctly shows or hides the "Custom Clock" section in Wallpaper Picker, respectively. Change-Id: Iaac6996a35c2ad2a7a7c945cb56d49802443d965
2022-11-11[TP] Change custom clocks flag nameGeorge Lin
Change the flag name for custom clocks Test: Manual Bug: 241966062 Change-Id: Ia3f92b6ea36364ccfde81cd48601d275919ebd49
2022-10-10[TP] Refector wallpaper picker injectorsGeorge Lin
1. Sort the functions in DefaultCustomizationInjector. Some do not need to override since they are the same as the parent 2. Rename DefaultCustomizationInjector to ThemePickerInjector 3. Remove WallpapersInjector since it's never used Bug: 247807196 Test: manuel test to make sure it builds Change-Id: I82256f30b845504a82ea89bff82eaad3ff3b8a5f
2022-10-04[TP] Refactor util function for instantiating preview fragmentGeorge Lin
Due to the refactor, we no longer have the newInstance function from PreviewFragment. Thus we directly instantiate the fragment in the injector. Bug: 246968463 Test: manuel testing and it works as before Change-Id: I223661e2068d6b1c0d32feb45dff8257c6acb6d5
2022-08-16Create clock customization sectionGeorge Lin
Created a clock section which shows on the wallpaper picker home page and leads to clock customization. Bug: 241966062 Test: https://screenshot.googleplex.com/64DxwUBSbnfFfPf.png Change-Id: I8a15652bdc580f37cb56efc88e485cb782fc89b7
2022-01-05Remove obsolete classesChuck Liao
Replace the class of the intent to the valid activity. Bug: 198711415 Test: manual Change-Id: I9762b91bfcccb23b069a9e66a79e42834111d0b8
2021-11-15Add parameter in getPreviewFragment() to support full screen previewChing-Sung Li
Bug: 204411095 Test: Manual Change-Id: I1bfd6264980244d7a7fe48bd8309f5d04f767b30
2020-12-23Add a placeholder package change event listener.Chuck Liao
Bug: 172188327 Change-Id: Ibde74630db19cbbedc50f7cf6a20d3021ad75469
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-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-01Cleanup the AppbarFragment usage in PreviewFragmentchihhangchuang
Cleanup only, no business logic change - AppbarFragment had a good pattern to set title on toolbar. PreviewFragment won't do it throught accessing activity tool bar. - AppbarFragment had a good pattern to set bottom action bar, which is widely used within the app, PreviewFragment won't do it by itself. Test: Manually Fixes: 160211359 Change-Id: Ie9e390c69e82d02192af0e2bcc5274b9a64d514c
2020-06-08Apply interface change of showViewOnlyPreview()Ching-Sung Li
To support the full preview as home or lock screen. showViewOnlyPreview() is updated accordingly. Bug: 157724411 Test: Manual Change-Id: I006116bd5b22c1c1146aff56d4f4a89cb5bcf996
2019-09-26[LivePicker 1/n] Use the new ImagePreviewFragmentSantiago Etchebehere
Bug: 141391722 Change-Id: I096d1c9073acfc8f24a0e6a73a22f8913b896a4a
2019-06-01Misc changes needed for micropaper integration.Clément Julliard
* Update Injector to pass Context argument. * Simplify WallpaperSetter#requestDestination listener. Bug: 133160356 Change-Id: Ib7546a804c1e818004f6bad0e3b71019feeeed6d
2018-11-30Set up build files for theme pickerSantiago Etchebehere
Bug: 118758604 Change-Id: I18f38d5eea0d30edcc865cf3dfe9c46f5bd89a8c