summaryrefslogtreecommitdiffstats
path: root/WallpaperPicker/src
Commit message (Collapse)AuthorAgeFilesLines
* Wallpaper: Allow multiple partners to be loadedd34d2016-05-271-31/+38
| | | | | | | | | | | | Current implementation only allowed for one partner, and any additional partner wallpapers would not be loaded. Partrner.get() still returns the first partner and a new method, getAllPartners is introduced which returns a list of all partners. Ticket: FEIJ-410 Change-Id: I06b6cd4817d3f812e2110967f075d68ee31cb318 (cherry picked from commit 93e949f1a9931bf7188f4d2a43630603d7a388a8)
* Trebuchet: Add runtime storage perm check for wallpaper pickercretin452016-05-052-1/+43
| | | | | | | Issue-id: FEIJ-441 Change-Id: Iac9a2c249de595568f68313335d337410928d19e (cherry picked from commit 71e092266117e0d7d57f9a78fb9b52552acc9cda)
* Trebuchet: Fix resource not found exception when picking a wallpapermyfluxi2016-01-121-1/+1
| | | | | | Select a picture from Gallery, set as wallpaper, crash. Change-Id: I4c23b9523d36f51bdd1cff2858f2ece08fd4cc84
* Version code cleanupSunny Goyal2015-08-172-8/+4
| | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* Ensure that crop view is loaded before applying a wallpaperSunny Goyal2015-08-121-1/+2
| | | | | Bug: 22293299 Change-Id: I64d5268cc263bbb6595a0b28bdd5ec73d540da41
* Preventing user from selecting any new time, when a tile is already being ↵Sunny Goyal2015-08-101-0/+4
| | | | | | | applied Bug: 22293299 Change-Id: I6b9bf2b777d33ca23f291c7872ce1f338d41e516
* Fix issue where scroll container shadow didn't fade outAdam Cohen2015-08-031-9/+11
| | | | Change-Id: I3b0104dea04009819db0375c381b8ff445b76baa
* Removing junit.framework.Assert from wallpaper picker codeSunny Goyal2015-06-263-8/+7
| | | | | Bug: 22124692 Change-Id: Ifd41727a2ce4af660818b4f0cd6b95110ffdeec4
* Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permissionAdam Cohen2015-06-231-0/+13
| | | | | | issue 22019397 Change-Id: I7d556494569afaeac0ecdd641a089b78663b5563
* Read rotation setting correctly from the wallpaper picker.Rahul Chaturvedi2015-06-151-1/+1
| | | | | | | | | If reading the rotation setting without the multi-process flag, the WallpaperPickerActivity usually picks up a cached value. Specifying the multi-process flag during the read fixes this and the wallpaper picker always has the correct rotation setting. Change-Id: Ic3639f8cd694674e92c8940b753c6bc30486076d
* Merge "Stylus support: creating and setting listeners for stylus button ↵Mady Mellor2015-06-031-0/+10
|\ | | | | | | press" into ub-launcher3-burnaby
| * Stylus support: creating and setting listeners for stylus button pressMady Mellor2015-06-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates almost(*) all locations that use a long press listener to also set a custom touch listener that recognizes the stylus button press action. The stylus button press action is: when a stylus touches a view while the primary stylus button is pressed which may occur on a DOWN or MOVE event. *The location this is *not* enabled for is: Longpress to enter "overview" mode -- this isn't really a selection or drag n drop action; it is also easy to accidentally do this while using the stylus gesture to drag n drop items which is not an ideal interaction. Also not set for the "cling" that demonstrates this. Bug: 20430722 Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
* | Add the Allow Rotation setting to Launcher3.Rahul Chaturvedi2015-06-011-1/+6
|/ | | | | | | | | | | | This CL adds a Settings activity along with the code needed to provide a "Allow Rotation" setting to all phones and tablets. This setting is set to false for phones and true for tablets. On changing the setting from unlocked to locked, the launcher (and the Settings activity) will get locked to the orientation the user was in when he disabled "Allow Rotation". This is consistent with how the natural rotation feature of Android works. Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344
* Enabling setWallpaper button only if the image was loaded successfullySunny Goyal2015-05-212-4/+9
| | | | | Bug: 20187333 Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686
* Verify that an image can be rendered on a GL Surface before using itSunny Goyal2015-05-183-46/+45
| | | | | Bug: 20138883 Change-Id: I8de70eb971f31c2a4c07a7903e097a1586402282
* Various lint error fixes.Sunny Goyal2015-05-143-6/+12
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Merge "Revert "Revert "Disable setWallpaper button until the wallpaper is ↵Sunny Goyal2015-04-151-30/+41
|\ | | | | | | loaded" Will submit again after the drop" Actual fix" into ub-launcher3-burnaby
| * Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" ↵Sunny Goyal2015-04-151-30/+41
| | | | | | | | | | | | | | | | | | | | Will submit again after the drop" Actual fix This reverts commit b4b01efa438953b0a9fcb5b83a6a619e24c93ea3. Change-Id: I65cc75e0f1a95f69be607bb5b11d7f4627ff25c1
* | Merge "Revert "Disable setWallpaper button until the wallpaper is loaded" ↵Sunny Goyal2015-04-151-41/+30
|\| | | | | | | Will submit again after the drop" into ub-launcher3-burnaby
| * Revert "Disable setWallpaper button until the wallpaper is loaded"Sunny Goyal2015-04-151-41/+30
| | | | | | | | | | | | | | | | Will submit again after the drop This reverts commit 65776c43590e506f2ce1906b1421caad95448010. Change-Id: I5f85d0c70f3f5faf85d9ba16e82d4714b694a193
* | Merge "Disable setWallpaper button until the wallpaper is loaded" into ↵Sunny Goyal2015-04-151-30/+41
|\| | | | | | | ub-launcher3-burnaby
| * Disable setWallpaper button until the wallpaper is loadedSunny Goyal2015-04-151-30/+41
| | | | | | | | | | Bug: 20187333 Change-Id: Id7a42616560e15eddedad5846ef927a3be52ed1c
* | Remove usage of FloatMathNeil Fuller2015-04-151-3/+2
|/ | | | | Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I2effc3f498fb13e66de9a905b9a40ac5688a5850
* Removing Pools.java as it is present in support libSunny Goyal2015-04-082-167/+2
| | | | Change-Id: I0f1346223aa289889dbefedd47bff093e9c2c05d
* Adding BaseActivity which can be overriden for custom behaviorSunny Goyal2015-03-216-59/+80
| | | | Change-Id: I6707aa99f5d33dceede226a6367e24482f5157f6
* Removing all dependencies of launcher code on wallpaper-pickerSunny Goyal2015-03-204-136/+37
| | | | | | | > WallpaperPicker can still depend on launcher code, but not the other way round. Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
* Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-207-38/+48
| | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Cleaning up some resources in WallpaperPickerActivitySunny Goyal2015-02-264-92/+15
| | | | Change-Id: I4923403c0c094d0ae0b00e3a08a13099c3addb10
* Picking a bitmap to reuse where least pixels are wastedSunny Goyal2015-02-251-8/+13
| | | | Change-Id: I4217bc68a5caa2d1526e4ebb101dbaf0348066d3
* Reducing memory usage of wallpaper pickerSunny Goyal2015-02-245-182/+241
| | | | | | | | | | | | > Loading preview bitmap only once, instead of loading it twice at BitmapRegionTileSource and BitmapSource > Maintaing a weak-set of reusable bitmaps and reusing them for decoding bitmaps > Loading images on a HandlerThread (instead of AsyncTask) and removing any non-started task before submitting a new task > Loading inbuild images (from resources) on HandlerThread instead of UIThread > Freeing up unbound GL textures before binding a new texture. Bug: 18382606 Change-Id: Ic4ca630dd113ded65d2853eb0d291c9e5823637e (cherry picked from commit 283c2261bd4440f4108a564cea0f5fc499781213)
* Merge "Moving some files and methods around" into ub-launcher3-masterSunny Goyal2015-02-2010-930/+568
|\
| * Moving some files and methods aroundSunny Goyal2015-02-1210-930/+568
| | | | | | | | | | | | | | | | > Removing android.util package > Moving static methods and classes out of WallpaperCropActivity > Removing some unused utility methods Change-Id: I252a0655ddce195189b6b3f0bf92970e5808c9d7
* | Merge "Fixing logic to determine if wallpaper change." into ub-launcher3-masterSunny Goyal2015-02-202-28/+4
|\ \
| * | Fixing logic to determine if wallpaper change.Sunny Goyal2015-02-122-28/+4
| | | | | | | | | | | | | | | | | | | | | > Current logic to determine if livewallpaper changed returns true all the time > Use returnCode passed by the calling activity. Change-Id: Ida800a90451b1f7d368234e1a7e10938dcf2f6f7
* | | Merge "Removing unused BlockingGLTextureView" into ub-launcher3-masterSunny Goyal2015-02-122-540/+11
|\ \ \ | |_|/ |/| |
| * | Removing unused BlockingGLTextureViewSunny Goyal2015-02-122-540/+11
| |/ | | | | | | Change-Id: Iac5aec1193e53dd554f61d07201bac06178914f5
* / Fixing last image thumb, being loaded twiceSunny Goyal2015-02-121-2/+1
|/ | | | Change-Id: I241e472a3f0869b82066163514fb2c29c0f18a8f
* Merge "Removing usage of reflection." into ub-launcher3-masterSunny Goyal2015-01-211-52/+0
|\
| * Removing usage of reflection.Sunny Goyal2015-01-201-52/+0
| | | | | | | | | | | | | | > Updated launcher.java with the new APIs > Removed unused method in BitmapUtils Change-Id: I24804d2cd7d9fc45040532e8324672f5ea6fc110
* | Removing support library dependencySunny Goyal2015-01-201-1/+1
|/ | | | | | > Removed FolderAutoScrollHelper as folders are currently not scrollable Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
* Add more Launcher files to delete on Clear Launcher DataHelena Josol2014-10-162-7/+5
| | | | | Bug: 12753154 Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
* Create a central list of files the Launcher writes to the app directoryHelena Josol2014-10-061-4/+5
| | | | | | | Replace hardcoded Launcher filenames with the defined constants. Bug: 12753154 Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
* Add ability for Partner customization apk to override certain DeviceProfile ↵Adam Cohen2014-09-042-107/+1
| | | | | | | | | | | params -> Workspace row / col counts -> All apps row / col counts -> Workspace icon size issue 17208277 Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
* Saving the system wallpaper thumbnail prefixed by the SDK_INTSunny Goyal2014-08-131-8/+20
| | | | | | | | so that it is recreated after a system update. issue: 15670065 Change-Id: I237ef1d99676d5a0ac6ff7b4a80a7a72905ef1ed
* Autoinstalls loading xmlSunny Goyal2014-08-121-20/+4
| | | | | | | | | | > Launcher checkes for an apk in the system image with a broadcast receiver for action: com.android.launcher3.action.LAUNCHER_CUSTOMIZATION > Default layout is parsed from that apk, which can also contain icons and string resources used in the layout config Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445
* Add partner customization option to force first run flowAdam Cohen2014-08-081-0/+8
| | | | | Change-Id: Id50587cbb95e375b3847597f12bd8566c70dd7bc (cherry picked from commit 923e1de9f0d7672dd18947ecde2b0da8c5768b7a)
* Fix SecurityException when exiting wallpaper picker earlyAdam Cohen2014-07-241-4/+18
| | | | | | issue 16155967 Change-Id: Iba1add737089b73e6e5bbfb143dce4204fa9dc7c
* Merge "Adding options in the partner apk to disable the default wallpaper ↵Sunny Goyal2014-07-234-87/+109
|\ | | | | | | and provide a folder containing additional wallpapers" into ub-now-master
| * Adding options in the partner apk to disable the default wallpaper andSunny Goyal2014-07-164-87/+109
| | | | | | | | | | | | | | | | provide a folder containing additional wallpapers issue: 16045459 Change-Id: Id411121ff552d0d270258a5b371d1fd756bd7884
* | Fixing memory leak in WallpaperCropActivitySunny Goyal2014-07-221-0/+8
|/ | | | | | issue 15516788 Change-Id: I6feb4cb72052bc7f19e9c30957bff7dcccd5bc9d