History log of /packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd309fbf9f5f5f697d0d275f3bbbe96d5faab580 16-May-2016 Tony Wickham <twickham@google.com> Replaced Utilities.isNycOrAbove() with version code check.

- Instead of using reflection to check if N is present, we now use
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N.
- Other places that used reflection to use N APIs have also been
cleaned up.

Bug: 22942492
Change-Id: Ia7b981cae375e800bcc8f0c54aec48e0c8c076da
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
fceb9ff0f5855432763d5dc15eeff8e7ce4df0c0 16-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Passing the full image and crop hint when setting the wallpaper

Bug: 25454157
Change-Id: Ia0ae7dd4963b72cd7902622847deedfcb5a0eca2
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b64726e4e9304e841077572b2399c7eab871a0d6 12-Apr-2016 Tony Wickham <twickham@google.com> Add dialog to set Default Wallpaper on lock screen for N+.

Change-Id: I91c77f5751202f9a4b3a922726ab55e354c50b4a
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b2694f5482e0deb362fa5ad309c0c2ca517ba1d9 11-Apr-2016 Tony Wickham <twickham@google.com> Disable "Set wallpaper" action bar when no tile is selected.

Change-Id: Ia21dfb8248fc607e3f5606f2cac18345cff6f260
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
aac9af46c09daf50dc3e04b180534de64688a0e0 11-Apr-2016 Tony Wickham <twickham@google.com> Prompt users to set wallpaper on lockscreen on N+.

This CL handles all wallpapers except the default one, which will
be handled in a follow-up CL.

Change-Id: Ib8e4f18fb35b4c1442efb3893df75bf5f4f9b0d5
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
58b53b5dff703285229fd024fdd882c1606df1a9 23-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Preserving the homescreen rotation setting on a tablet, when the display is scaled

Bug: 27040652
Change-Id: I07f5e02443379ac5b877f72d33cedf4f2feca926

Conflicts:
src/com/android/launcher3/Utilities.java
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
4530aca912c7b4942d3cbc63fe6997a1615d7b0a 30-Oct-2015 Tony Wickham <twickham@google.com> Set parallax offset to be 0.5f for default wallpapers.

This ensures they are centered as they were without any offset.

Bug: 25347076
Change-Id: Id773cd89463d47b350e60878c00e1112e0244414
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
3e776a87dc5178ab7d2c31a8db06fe5657db4e4a 10-Sep-2015 Tony Wickham <twickham@google.com> Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b894aa1f671aee026e8555e4ed30c8dd415a40c2 29-Aug-2015 Tony Wickham <twickham@google.com> Fix typos caused by gerrit's inline editor.

Change-Id: Ie142f5c6b418ac775cc167787f8e372d5354b91a
(cherry picked from commit 1ea392f0bc30134a800be224d8fbcf1af63bb80b)
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
aebd9fde89e949ef29c0a0367f4f7f34af64c6fd 28-Aug-2015 Tony Wickham <twickham@google.com> Reuse existing temporary wallpaper tiles when selecting same photo.

Previously, if you selected a photo to set as the wallpaper multiple times, it
kept adding temporary wallpaper tiles that were all identical. Now it reuses the
same tile, updating the thumbnail and wallpaper if the Uri happens to point to a
new image (such as if a photo is renamed).

Change-Id: Ib05c9db4e1fd17226b503174f25add3368158b11
(cherry picked from commit f970ee5cdc0185fa5003ded178ef680813d8a259)
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
79a640ec354e61363e0c347793f70b3a285a0240 13-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Ensure that crop view is loaded before applying a wallpaper

Bug: 22293299
Change-Id: I64d5268cc263bbb6595a0b28bdd5ec73d540da41
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b33e09a93cda9793b84ec70e1d85c9038f5d3ee6 10-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Preventing user from selecting any new time, when a tile is already being applied

Bug: 22293299
Change-Id: I6b9bf2b777d33ca23f291c7872ce1f338d41e516
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
209a859dedba0e8314ee102a760aad78a814ea94 04-Aug-2015 Adam Cohen <adamcohen@google.com> Fix issue where scroll container shadow didn't fade out

Change-Id: I3b0104dea04009819db0375c381b8ff445b76baa
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b15d43837c5c3a0c52bb5112c23738eeaee1dc1e 24-Jun-2015 Adam Cohen <adamcohen@google.com> Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission

issue 22019397

Change-Id: I7d556494569afaeac0ecdd641a089b78663b5563
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
e863fed1400d00fab11a61c5b4b989d86ca55386 15-Jun-2015 Rahul Chaturvedi <rkc@google.com> Read rotation setting correctly from the wallpaper picker.

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
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
19b1bad23904a899bd9dc56bf9e2e827619164b1 03-Jun-2015 Mady Mellor <madym@google.com> Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby
ef044dd380ac3abf354027750efdc16d5d48ac70 03-Jun-2015 Mady Mellor <madym@google.com> Stylus support: creating and setting listeners for stylus button press

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
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
7fc77cad3d06bd3647e550f7419e89116471240a 20-May-2015 Rahul Chaturvedi <rkc@google.com> Add the Allow Rotation setting to Launcher3.

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
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
8abbd29ca320fe88d0043a51bc4a4f5914480b00 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Enabling setWallpaper button only if the image was loaded successfully

Bug: 20187333
Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
e49c105de57e53828ea372aff3713d6ebfd66f2e 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Verify that an image can be rendered on a GL Surface before using it

Bug: 20138883
Change-Id: I8de70eb971f31c2a4c07a7903e097a1586402282
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
7066003b2032a49ae5e59dab9b706259bdeb7e6e 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Various lint error fixes.

> 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
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
89a6ec2af2857115fb6d5bb65bb9df75432f7972 16-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop"
Actual fix

This reverts commit b4b01efa438953b0a9fcb5b83a6a619e24c93ea3.

Change-Id: I65cc75e0f1a95f69be607bb5b11d7f4627ff25c1
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
b4b01efa438953b0a9fcb5b83a6a619e24c93ea3 16-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Revert "Disable setWallpaper button until the wallpaper is loaded"
Will submit again after the drop

This reverts commit 65776c43590e506f2ce1906b1421caad95448010.

Change-Id: I5f85d0c70f3f5faf85d9ba16e82d4714b694a193
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
65776c43590e506f2ce1906b1421caad95448010 15-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Disable setWallpaper button until the wallpaper is loaded

Bug: 20187333
Change-Id: Id7a42616560e15eddedad5846ef927a3be52ed1c
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
1d0b093a6e384f5ade340c2b404b324bb6002c97 21-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Adding BaseActivity which can be overriden for custom behavior

Change-Id: I6707aa99f5d33dceede226a6367e24482f5157f6
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
6a1e95a3dfb5eb65cc2c682c5ede9e22cc7ff7d9 21-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing all dependencies of launcher code on wallpaper-picker

> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
091440a9cb9d4f42406631004aa484cbb79214ca 18-Mar-2015 Adam Cohen <adamcohen@google.com> Reducing method count by eliminating synthetic accessors

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
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
9c83a0da6d6faf4d8a81effd27997ffb12bf3fdd 13-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Cleaning up some resources in WallpaperPickerActivity

Change-Id: I4923403c0c094d0ae0b00e3a08a13099c3addb10
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
65b929d6f21683198caf28e266fd2cf52c843764 13-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Reducing memory usage of wallpaper picker

> 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)
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
f3e4f548fd472cf64e407890373f5ce0e7ac3bbc 20-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Moving some files and methods around" into ub-launcher3-master
9026271410ee93ab5516d6c59f28c21f157eee7d 20-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing logic to determine if wallpaper change." into ub-launcher3-master
06a4d3f1afee2d1069796d585838efbc7a1f491e 12-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Moving some files and methods around

> Removing android.util package
> Moving static methods and classes out of WallpaperCropActivity
> Removing some unused utility methods

Change-Id: I252a0655ddce195189b6b3f0bf92970e5808c9d7
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
fddef4634cb3b06c85662c24ffa33026d1348d54 12-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Fixing logic to determine if wallpaper change.

> Current logic to determine if livewallpaper changed returns true all the time
> Use returnCode passed by the calling activity.

Change-Id: Ida800a90451b1f7d368234e1a7e10938dcf2f6f7
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
6f553b975fba69bd9e5fd58c4db2ba72b67192ee 12-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Fixing last image thumb, being loaded twice

Change-Id: I241e472a3f0869b82066163514fb2c29c0f18a8f
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
28db280b7af14614f2b168ea8c5d496cda650321 09-Oct-2014 Helena Josol <helenajosol@google.com> Add more Launcher files to delete on Clear Launcher Data

Bug: 12753154
Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
4ae96ce92df7aad3c767c68b8795b80734e01829 30-Aug-2014 Adam Cohen <adamcohen@google.com> Add ability for Partner customization apk to override certain DeviceProfile params

-> Workspace row / col counts
-> All apps row / col counts
-> Workspace icon size

issue 17208277

Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
0af0d8422b1496dc3c60245264949debfa862057 13-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Saving the system wallpaper thumbnail prefixed by the SDK_INT
so that it is recreated after a system update.

issue: 15670065

Change-Id: I237ef1d99676d5a0ac6ff7b4a80a7a72905ef1ed
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
8dc6e1bfa20d48babd6dd0f41bfc6de1a09cd67b 24-Jul-2014 Adam Cohen <adamcohen@google.com> Fix SecurityException when exiting wallpaper picker early

issue 16155967

Change-Id: Iba1add737089b73e6e5bbfb143dce4204fa9dc7c
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
cdc4dbd878a1f45d21c2881127cd5194e4e48ced 17-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Adding options in the partner apk to disable the default wallpaper and
provide a folder containing additional wallpapers

issue: 16045459

Change-Id: Id411121ff552d0d270258a5b371d1fd756bd7884
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
c8d31ff228511d815aa8b46d5bd24c6cc8183333 12-Jun-2014 Adam Cohen <adamcohen@google.com> Add null check for empty MediaStore cursor

issue 15397853

Change-Id: I1c28262e181a4f32e1f7a58813121db72746d6a8
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
5aeef58131e1c330d1d9c1dfcacf2e6eea6ced4b 14-Apr-2014 Jeff Sharkey <jsharkey@android.com> Add support for partner customization.

Traditionally Launcher workspace customization is offered through
overlays at build time, but we don't have access to partner-specific
customization at build time. To solve this, this adds a new
"partner-folder" tag which points at an XML resource provided by
an external package.

The external package XML can't depend on the binary XML attributes
defined by Launcher3, so we switch to using manual string-based
attribute lookups. Partners can also provide extra wallpapers.

When a folder only results in a single item, promote that item into
the folder location instead of deleting completely.

Bug: 13340779
Change-Id: Ide558288bef4113565f288b700d8245055c0fee9
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
0c255a946788499d7f169429890d5a423426593b 04-Mar-2014 Selim Cinek <cinek@google.com> Merge "Changed behaviour of the wallpaper picker." into ub-now-lunchbox
ffed65886ecd83f52dc1c052897511c95a5f371a 28-Feb-2014 Selim Cinek <cinek@google.com> Changed behaviour of the wallpaper picker.

When opening the picker, the currently chosen wallpaper is
shown in the background.
In this change also the nullpointer was fixed when deleting
the currently selected wallpaper and setting it, because we
revert to the old wallpaper in that case.
When going into the same live wallpaper than the currently
selected we are going back to home if the user sets it or
goes back now, in order for the user not to loose state.
The real fix for this will be done later when the following
bug will be fixed: b/13241760

Bug: 12063773
Bug: 13219612
Change-Id: I7c6abb25755eca99c3255278e0884d1ff4749b55
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
8657bac9b55a8db9ce587ea896a03325968498ea 03-Mar-2014 Christoph Studer <chstuder@google.com> Merge "Guard against null default wallpaper" into ub-now-lunchbox
7084c606eb1e613d2bc5681f3c54ad7912859eed 28-Feb-2014 Christoph Studer <chstuder@google.com> Guard against null default wallpaper

Deal with WallpaperManager.getBuiltInDrawable() returning null.

Bug: 13109487
Change-Id: Ib5665a0eb947e9784cdcd0e8dfab1a01b4deca82
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
3aa28319ceca347dfd4958ca95b94652bb8e2a3d 28-Feb-2014 Selim Cinek <cinek@google.com> Changed inconsistency when selecting default wallpaper, where it did not go back to home.

Bug: 13219313
Change-Id: I4961c6724a1550dbae126f97e45dc166cbe9a565
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
c13e0a5cf1a7901650cc32f64b6256d7d3bd94fb 25-Feb-2014 Selim Cinek <cinek@google.com> Fixed visibility issue of save button in case the url loading failed

Bug: 12953091
Change-Id: Idc640532e2c2c6143d49d330bd541682eca64ac5
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
849aff7553a5daffa34b4c38d1d29dec5a87fde1 16-Jan-2014 Michael Jurka <mikejurka@google.com> Disable Set Wallpaper button while loading image

Bug: 12472111

Change-Id: I2a0cba47f31af2416b0dd062929f277fcbf80481
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
1b921efc84e09e39ec5d2bd114ec919dfe2a79f0 15-Jan-2014 Jorim Jaggi <jjaggi@google.com> Keep selected wallpaper on configuration change.

Keeps the currently selected wallpaper when a configuration (for example,
device rotation) occurs. This change also effects the logic when the thumbnail
gets displayed after loading the image from an external URI, as this must be
now handled independently of which wallpaper is selected.

Bug: 11007874
Change-Id: Id676c378aec38d0b21e5d9150846f33aff415cad
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
7ad868b86e45d6f58c186d2731ab2beb84643757 12-Dec-2013 Michael Jurka <mikejurka@google.com> Create separate project for Wallpaper Picker

Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java