Commit Graph

87 Commits

Author SHA1 Message Date
Geoff Mendal
2598d3ce5b Import translations. DO NOT MERGE
Change-Id: I7e48169b1393f02ef4a152b8052f5243f3363f3a
Auto-generated-cl: translation import
2015-07-06 05:25:09 -07:00
Sunny Goyal
cc31d46327 Updating the pick-image tile in wallpaper picker
> Changing the label to My photos
> Changing the icon to photo-library icon

Bug: 22019397
Change-Id: I068d8d5fa11392642bb0a84cb466d8f679e49b54
2015-07-01 13:47:40 -07:00
Sunny Goyal
320a27b539 Removing junit.framework.Assert from wallpaper picker code
Bug: 22124692
Change-Id: Ifd41727a2ce4af660818b4f0cd6b95110ffdeec4
2015-06-26 14:10:44 -07:00
Adam Cohen
ba5ecebd1b Merge "Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission" into ub-launcher3-burnaby 2015-06-24 16:19:23 +00:00
Adam Cohen
b15d43837c Avoid crashing if we don't have the READ_EXTERNAL_STORAGE permission
issue 22019397

Change-Id: I7d556494569afaeac0ecdd641a089b78663b5563
2015-06-23 17:50:27 -07:00
Sunny Goyal
5d9200f921 Using a full-bleed background for Set-Wallpaper button
Bug: 22007160
Change-Id: I06c4ffe5b5fa4f2c18c06a6e1bf014b328de00fd
2015-06-23 14:28:58 -07:00
Geoff Mendal
170ca1ccd8 Import translations. DO NOT MERGE
Change-Id: I8c0c8c4e5f5e09c5852d31429c8f668d4229cc37
Auto-generated-cl: translation import
2015-06-17 20:18:23 -07:00
Rahul Chaturvedi
e863fed140 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
2015-06-15 14:09:42 -04:00
Sunny Goyal
c1f174a244 Fixing touch feedback clipped on SetWallpaper button
Bug: 19534312
Change-Id: I97dfd92c560caaf83e525f7e94286a7a77d2ba0b
2015-06-05 13:44:44 -07:00
Mady Mellor
19b1bad239 Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby 2015-06-03 16:26:35 +00:00
Mady Mellor
ef044dd380 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
2015-06-02 15:35:07 -07:00
Rahul Chaturvedi
7fc77cad3d 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
2015-06-01 16:50:50 -04:00
Sunny Goyal
8abbd29ca3 Enabling setWallpaper button only if the image was loaded successfully
Bug: 20187333
Change-Id: I1b738a06499d20facbc4bccb1e6247086a45b686
2015-05-21 16:14:08 -07:00
Sunny Goyal
e49c105de5 Verify that an image can be rendered on a GL Surface before using it
Bug: 20138883
Change-Id: I8de70eb971f31c2a4c07a7903e097a1586402282
2015-05-18 16:42:22 -07:00
Sunny Goyal
7066003b20 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
2015-05-14 12:28:07 -07:00
Sunny Goyal
bbc140b545 Merge "Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop" Actual fix" into ub-launcher3-burnaby 2015-04-15 23:53:43 +00:00
Sunny Goyal
89a6ec2af2 Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop"
Actual fix

This reverts commit b4b01efa43.

Change-Id: I65cc75e0f1a95f69be607bb5b11d7f4627ff25c1
2015-04-15 23:40:57 +00:00
Sunny Goyal
b3c5fac5dc Merge "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop" into ub-launcher3-burnaby 2015-04-15 23:39:51 +00:00
Sunny Goyal
b4b01efa43 Revert "Disable setWallpaper button until the wallpaper is loaded"
Will submit again after the drop

This reverts commit 65776c4359.

Change-Id: I5f85d0c70f3f5faf85d9ba16e82d4714b694a193
2015-04-15 23:38:17 +00:00
Sunny Goyal
8fbb771537 Merge "Disable setWallpaper button until the wallpaper is loaded" into ub-launcher3-burnaby 2015-04-15 22:26:32 +00:00
Sunny Goyal
65776c4359 Disable setWallpaper button until the wallpaper is loaded
Bug: 20187333
Change-Id: Id7a42616560e15eddedad5846ef927a3be52ed1c
2015-04-15 14:17:46 -07:00
Neil Fuller
ba41458f5c Remove usage of FloatMath
Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I2effc3f498fb13e66de9a905b9a40ac5688a5850
2015-04-15 09:10:18 +01:00
Sunny Goyal
7f06ae5c8b Removing Pools.java as it is present in support lib
Change-Id: I0f1346223aa289889dbefedd47bff093e9c2c05d
2015-04-08 11:08:27 -07:00
Sunny Goyal
1d0b093a6e Adding BaseActivity which can be overriden for custom behavior
Change-Id: I6707aa99f5d33dceede226a6367e24482f5157f6
2015-03-21 11:11:03 -07:00
Sunny Goyal
6a1e95a3df 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
2015-03-20 18:16:58 -07:00
Adam Cohen
091440a9cb 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
2015-03-20 11:15:54 -07:00
Sunny Goyal
9c83a0da6d Cleaning up some resources in WallpaperPickerActivity
Change-Id: I4923403c0c094d0ae0b00e3a08a13099c3addb10
2015-02-26 19:33:38 +00:00
Sunny Goyal
9f9d0a59c4 Picking a bitmap to reuse where least pixels are wasted
Change-Id: I4217bc68a5caa2d1526e4ebb101dbaf0348066d3
2015-02-25 11:53:26 -08:00
Sunny Goyal
65b929d6f2 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 283c2261bd)
2015-02-24 23:18:25 +00:00
Sunny Goyal
f3e4f548fd Merge "Moving some files and methods around" into ub-launcher3-master 2015-02-20 01:54:31 +00:00
Sunny Goyal
9026271410 Merge "Fixing logic to determine if wallpaper change." into ub-launcher3-master 2015-02-20 01:50:47 +00:00
Sunny Goyal
35746d6029 Merge "Removing unused BlockingGLTextureView" into ub-launcher3-master 2015-02-12 22:26:48 +00:00
Sunny Goyal
06a4d3f1af 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
2015-02-12 12:25:56 -08:00
Sunny Goyal
c7eef37512 Removing unused BlockingGLTextureView
Change-Id: Iac5aec1193e53dd554f61d07201bac06178914f5
2015-02-12 10:13:09 -08:00
Sunny Goyal
fddef4634c 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
2015-02-12 10:01:15 -08:00
Sunny Goyal
6f553b975f Fixing last image thumb, being loaded twice
Change-Id: I241e472a3f0869b82066163514fb2c29c0f18a8f
2015-02-12 09:58:04 -08:00
Sunny Goyal
5736ed319d Merge "Removing usage of reflection." into ub-launcher3-master 2015-01-21 01:13:27 +00:00
Sunny Goyal
d009101232 Removing usage of reflection.
> Updated launcher.java with the new APIs
> Removed unused method in BitmapUtils

Change-Id: I24804d2cd7d9fc45040532e8324672f5ea6fc110
2015-01-20 15:56:23 -08:00
Sunny Goyal
c46bfef5df Removing support library dependency
> Removed FolderAutoScrollHelper as folders are currently not scrollable

Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
2015-01-20 11:49:12 -08:00
Geoff Mendal
2571c1acc2 Import translations. DO NOT MERGE
Change-Id: Id2721f2c721bfcaf5f880e6675f66a02a8bca1f3
Auto-generated-cl: translation import
2015-01-16 16:06:23 -08:00
Cameron Neale
2775cb34b3 Changes made to accomodate GSA in Google3 w/ Robolectric
dragViewOffset removed from WallpaperPicker as it was causing
a duplicate resource conflict with launcher3 and was not used
within the WallpaperPicker project.

Empty <application> tag added to WallpaperPicker manifest as required by
Robolectric

Removed <add-resource> tag from L3 manifest, unrecognized by Robolectric

Change-Id: I3744fc50731f82c3e6fdc01d9819e9a0302dc503
2014-10-31 14:06:07 -07:00
Cameron Neale
9a8573250b Removing duplicated and/or unused resources from WallpaperPicker that conflict with Launcher 3 resources. The resource duplicated between the two is now only held within Launcher3. These changes are necessary in order for GSA to build in Google3.
Change-Id: I70f5a250db52303c876e6abedd9c6d32d1d4761e
2014-10-20 14:26:17 -07:00
Helena Josol
28db280b7a Add more Launcher files to delete on Clear Launcher Data
Bug: 12753154
Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
2014-10-16 17:35:50 +01:00
Sunny Goyal
de326d08d8 Merge "Using DeviceDefault theme for Launcher and WallpaperPicker" into ub-now-queens 2014-10-08 17:31:10 +00:00
Sunny Goyal
e03b81294f Using DeviceDefault theme for Launcher and WallpaperPicker
Change-Id: I31bfeedd99d50683fba910f233b25bb3f364ce1f
2014-10-08 09:55:59 -07:00
Sunny Goyal
549f9b02a8 Updating the wallpaperpicker thumb selection feedback
> Using shape drawable instead of 9-patch image
> For L and above, using ripple click feedback with a tick
when selected. The vector path for tick is from go/icons ('Done')

Bug: 17897837

Change-Id: Ic9c9e455eb8bc39322b1474dd55432961b9a6498
2014-10-08 09:32:54 -07:00
Helena Josol
b2331f6601 Merge "Create a central list of files the Launcher writes to the app directory" into ub-now-queens 2014-10-06 16:25:56 +00:00
Helena Josol
4fbbb3e3e0 Create a central list of files the Launcher writes to the app directory
Replace hardcoded Launcher filenames with the defined constants.

Bug: 12753154
Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
2014-10-06 17:08:10 +01:00
Adam Cohen
e2f2594784 am 4b8d11fc: Add missing xxhdpi asset
* commit '4b8d11fcb396760eca75cf2b055a7acd05c594ec':
  Add missing xxhdpi asset
2014-10-03 20:58:06 +00:00
Adam Cohen
4b8d11fcb3 Add missing xxhdpi asset
Bug: 17813013
Change-Id: If1e3448fb109e3f7f0c1ae6562a795fecf3bdf42
2014-10-03 13:47:11 -07:00