Commit Graph

4855 Commits

Author SHA1 Message Date
Tony Wickham 5ecb655ac4 Fix the build am: 4707e2b64d
am: 7815035df0

Change-Id: If3c7dc7dc7c7a3a9f3ebf07f88a74d4a89e8c940
2016-06-22 01:41:48 +00:00
Tony Wickham 4707e2b64d Fix the build
Change-Id: Iaa38202cbb389eed179a3e7b1b6799426ae1cf39
2016-06-21 18:18:37 -07:00
Tony Wickham 8868238fb2 Merge branch \'ub-launcher3-burnaby-nyc\' into nyc-dev b/29535844
am: 3c0c2c4b02

Change-Id: I0a5e6e16d2cecc7151d1a863c8e8e07fb83ea060
2016-06-22 00:11:57 +00:00
Hyunyoung Song 3c0c2c4b02 Merge branch 'ub-launcher3-burnaby-nyc' into nyc-dev
b/29535844

Change-Id: I46d6f461261a4a8ba8bcea58ac82e005fca35109
2016-06-21 16:45:25 -07:00
Tony Wickham fd309fbf9f 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
2016-06-15 19:00:12 +00:00
Adam Cohen d140f3c77a Ensure that custom actions are available to all apps items
-> When BubbleTextViews were being recycled, the RecyclerView was clearing the
   AccessibilityDelegate. Ensure that this is reset by the adapter when a
   BubbleTextView is reused.

issue 25948877

(cherry picked from commit 6e92f05314)

Change-Id: I5f0773333186e5ffe4600f49330b4390cd3fbaeb
2016-06-07 18:29:37 -07:00
Adam Cohen 26a4f6c831 Revert "Ensure that custom actions are available to all apps items"
This reverts commit 677ce21fbf.

Change-Id: I7fc13142de9946e0b482160fa4c067461e471f52
2016-06-07 22:30:30 +00:00
Adam Cohen 677ce21fbf Ensure that custom actions are available to all apps items
-> When BubbleTextViews were being recycled, the RecyclerView was clearing the
   AccessibilityDelegate. Ensure that this is reset by the adapter when a
   BubbleTextView is reused.

issue 25948877

Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203
(cherry picked from commit 6e92f05314)
2016-06-07 22:08:19 +00:00
Winson 86e3dc4fc5 Adding null check for uninitialized CollectionItemInfo.
Bug: 28893815
Change-Id: Ib75b71fbb4d37bb818251527defcef891c7e7510
2016-06-06 11:36:58 -07:00
Sunny Goyal 65ffa15c90 Adding null check when widget provider changed is received as it can come
after the activity is destroyed.

Bug: 28791862
Change-Id: I521931b772a611e15f0757db72b441ebb937e262
2016-06-01 14:29:25 -07:00
Sunny Goyal d2a6ed36a2 Disabling stricty mode checks when launching an activity.
The default strict mode policy in NYC cause death penalty when
when sharing file URI in intent. This causes launcher to crash
for users who have shortcuts of images and documents on their
homescreen.

Bug: 28853579
Change-Id: If84cd5ff732713aaff5d3164edf428c8b4233ea2
(cherry picked from commit 85fc55a976)
2016-05-31 20:46:23 +00:00
Kenny Guy ad3ca7d1bf Update wallpaper API to match NYC change.
Update check for whether setting wallpaper
is allowed for renamed API.

Bug: 28954131
Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5
2016-05-25 19:22:14 +01:00
Sunny Goyal 42ca2fe3a8 Adding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexCompat
as libcore.icu.AlphabeticIndex is no longer available in N

Bug: 28795251
Change-Id: I3b168dfb451c0eac9b64c6559a51d2b1b8c578b9
2016-05-20 14:34:41 -07:00
Christopher Tate efe81e1226 Track adjustments to new wallpaper APIs
am: ea4cc66cf3

* commit 'ea4cc66cf303d5e1f4e936f5ff7688a720d36013':
  Track adjustments to new wallpaper APIs

Change-Id: Iaead705ec92bd7a41784072b5ec0b8350f33e89c
2016-05-19 19:38:51 +00:00
Christopher Tate ea4cc66cf3 Track adjustments to new wallpaper APIs
Bug 28773334

Change-Id: I4b660cf83172cfbd3640d7cf06020de766bda0bc
2016-05-18 17:33:01 -07:00
Sunny Goyal 47c86748e1 On some "non-standard" devices, load label can cause a security exception due to modified platform code
am: 0d86a8dccf

* commit '0d86a8dccf6557587eb3abae1bb3573e2c40c12c':
  On some "non-standard" devices, load label can cause a security exception due to modified platform code

Change-Id: I7d65f2f39353c50a43334709f8b3bf970969a68c
2016-05-16 19:56:13 +00:00
Sunny Goyal 0d86a8dccf On some "non-standard" devices, load label can cause a security exception
due to modified platform code

Bug: 28243147
Change-Id: Iab899d0cb233e19ebf994f8a3eacba26f840148f
2016-05-16 19:43:18 +00:00
Sunny Goyal 8249b928b7 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge
am: 8c340dff19

* commit '8c340dff19dd52c3d8d0a3c39178a9a388e89159':
  Fixing homescreen getting blank when returning from the overlay
  Fixing scrollTo getting called even though the gesture was handled by an overlay
  Adding overlay interaction support
  Cleaning up the overlay interface
  Enable selection action mode for Android M+.
  Fix home button returning to now screen issue
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Import translations. DO NOT MERGE
  Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
  Revert "Calling start/stop listening in onStart/onStop"
  Fix incorrect icon greying on pre-N system
  Setting stable layout flags on the launcher, so that the instets do not change for launcher when going in/out of another app
  Showing a toast when changing wallaper is disabled
  Fix recyclerview res path

Change-Id: If46f540c36af5895a6efb7271fe56aeb7bc60a25
2016-05-12 21:42:13 +00:00
Hyunyoung Song 8c340dff19 Merge branch 'ub-launcher3-burnaby-nyc' into launcher3merge
b/28269144
2016-05-12 19:54:34 +00:00
Sunny Goyal f2ea0cdd94 Fixing homescreen getting blank when returning from the overlay
Change-Id: Ie11b92cd59c90e71b9b58eeede742ef0c5b28380
2016-05-11 17:17:32 -07:00
Sunny Goyal 38f92cf9aa Fixing scrollTo getting called even though the gesture was handled by an overlay
Change-Id: Ia46c4ef3db8a3ae4fa615625b7b983d7e461c797
(cherry picked from commit 061380a04d)
2016-05-11 23:37:44 +00:00
Sunny Goyal d6e208b035 Adding overlay interaction support
> Sending unboundX to the overlay which is the total untranslated X and not just deltaX from last frame
> Handling overlay callback and translating workspace accordingly

Change-Id: I3bd8d9efac738e9ce131758f0e5ff1b9c1d6a8fc
2016-05-11 15:30:27 -07:00
Sunny Goyal 4ec7134a77 Cleaning up the overlay interface
Overlays are supposed to use their own UI and not interfere with the
Launcher UI. If the UI needs to be put inside the Launcher, use customContent
instead.

Removing some unnecessary and unused methods related to overlays

Bug: 25993953
Change-Id: I4d715cdee04eb7b0ebef673d885a4258c521ff1f
2016-05-11 11:44:28 -07:00
Hyunyoung Song 0fb31cf741 Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-burnaby-nyc 2016-05-10 20:37:20 +00:00
Yohei Yukawa fe1de383c1 Enable selection action mode for Android M+.
Since I62963d225e6ea5d2ec9d8ebc8a6d73099f5d6c7f, we have disabled
selection action mode in the folder-name editing mode on Launcher,
mainly because it messed up the view on phones.  However that is no
longer the case in Android M and later, where floating action mode
is available.

With this CL, we start relying on the default floating action mode
in Android M and later.

Bug: 22210697
Bug: 28526978
Change-Id: Ie19e7844194acd86cdb013254a1923f0b1d78e11
(cherry picked from commit 1bd9a430ed)
2016-05-10 20:20:30 +00:00
Hyunyoung Song d419681a1c Fix home button returning to now screen issue
b/27978139

Background: onSaveInstanceState assumes that state of the launcher
is being stored after screen is all binded. However, due to ActivityStack
bug in nyc, onCreate is called twice when the device is rotated while
the Launcher is in the background. The first onCreate fails because
our AndroidManifest is setup with nosensor field and hence doesn't support
Landscape. During this first onCreate, screen is not correctly bound
and incomplete workspace state is saved. This results in the second onCreate
to load wrong screen id.

Fix: While the workspace is still being bound, mSaveState is not reset,
which has the correct values. SaveInstance should use this state
instead of incomplete workspace state.

Change-Id: I5b80f584e55769b2a8ffa292f5daa4705c20086d
2016-05-09 18:35:55 -07:00
Sunny Goyal 6b29c72249 Fixing bug where the widget background enters into a focused state
if a child calls requestFocus in xml

Bug: 28562293
Change-Id: I005e23550184de29fa15eb70ab322615920b8947
(cherry picked from commit ea98f5288b)
2016-05-09 20:54:23 +00:00
Tony Wickham 8dd2409923 Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.
In battery saver mode, animations skip directly to the final values.
For LogDecelerateInterpolator, however, an input of 1f outputs an
interpolated 0.99999994. This meant that the FirstFrameAnimatorHelper
didn't realize that this was the last frame, and messed things up.
Since any interpolator should return 1 on an input of 1, we just
short-circuit in that case for the log interpolators.

Bug: 25666809
Change-Id: I60527e3758cea383fbcf50acb95460a7bd9ab43c
2016-05-03 17:00:20 -07:00
Sunny Goyal 0042e3a5e7 Revert "Calling start/stop listening in onStart/onStop"
This reverts commit 23ac9cb3e1.

Bug: 28421447
Change-Id: Id04e7b7827d8b897b7c7992705d36f9d83a13320
(cherry picked from commit 7e5d5fc3c6)
2016-04-28 22:43:19 +00:00
Rubin Xu 3ee9080fb4 Fix incorrect icon greying on pre-N system
The flag we check for package suspension is reused by a hidden constant
prior to N, so the flag should only be checked on N or later system.

Bug: 28390176
Change-Id: Ia28f62991cc2cd1b5d2cc27a5f11f7edca0ba02b
2016-04-27 20:33:53 +01:00
Sunny Goyal e81ba18a03 Setting stable layout flags on the launcher, so that the instets do not
change for launcher when going in/out of another app

Bug: 27600678
Change-Id: Ic873faba99c539025769d911bc7b0a4fed629cd7
(cherry picked from commit 784f9c3996)
2016-04-27 17:20:24 +00:00
Sunny Goyal 2afb636180 Showing a toast when changing wallaper is disabled
Bug: 27940102
Change-Id: I373093d9b85dca356aaa8798931d5315981fd74c
2016-04-21 15:16:42 -07:00
Hyunyoung Song 3e906a925c resolve merge conflicts of 7520e49 to nyc-dev-plus-aosp
Change-Id: I7e619acb70767f5db5004a40e160ef6487aea78b
2016-04-20 17:20:53 -07:00
Hyunyoung Song 7520e492e7 merged ub-launcher3-burnaby-nyc, and resolved conflicts
b/28269144
Change-Id: Ie884be65901b8d9c6a912944094b8c45796162ee
2016-04-20 11:41:00 -07:00
Sunny Goyal ddd6d96d5f Fixing wrong grid size definitions
Bug: 27958565
Change-Id: Icabc651552bbf6483fedbaeb52745c48d418f9ea
(cherry picked from commit 1ab22630a0)
2016-04-13 17:36:45 +00:00
Sunny Goyal 850a943133 Giving proper workspace description when the launcher is not loaded.
Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1

Conflicts:
	src/com/android/launcher3/Workspace.java
2016-04-12 16:39:10 -07:00
Hyunyoung Song 1124f2017a Merge "Talkback: return correct row index inside AllApps b/27108673 b/26546781" into ub-launcher3-burnaby-nyc 2016-04-12 23:17:31 +00:00
Hyunyoung Song d61db3f9fe Talkback: return correct row index inside AllApps
b/27108673
b/26546781

Change-Id: If8ed40986efdecb2cd994d011777588a97457326
2016-04-12 12:51:36 -07:00
Sunny Goyal 646020dbe9 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-burnaby-nyc 2016-04-12 19:48:36 +00:00
Sunny Goyal 6fa0c69b27 [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb
(cherry picked from commit d435cc070a)
2016-04-11 20:32:48 +00:00
Sunny Goyal d435cc070a [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
Bug: 28115607
Change-Id: I208d629a346781d9b1fbeb0a245685bf36f85aeb
2016-04-11 13:03:33 -07:00
Sunny Goyal fa7a67ebfc Removing dependency on getApplicationInfo method added in N
This method is goiing away. We don't need this method anyway
since LauncherActivityInfo already has the information

Change-Id: Ic6afa1df14958b894925d730e01a2e2d2a6fb98c

Conflicts:
	src/com/android/launcher3/LauncherModel.java
2016-04-08 15:43:16 -07:00
Sunny Goyal 96b6ed77a4 Calling start/stop listening in onStart/onStop
AppWidgetHost in N was changed to make start/stop lisenting calls
light weight, which allows launcher to avoid getting unnecessary
updates when its not visible

Bug: 23892701
Change-Id: I0ca6e02400992bc4e0359e45a3d66b9252751402
(cherry picked from commit 23ac9cb3e1)
2016-04-08 22:34:02 +00:00
Hyunyoung Song 9e48d0f22b Make com.android.launcher3.action.LAUNCH intent explicit b/27967359
am: f9dc857

* commit 'f9dc857a0e49750fefd88d4201ee74e1b3cfee3d':
  Make com.android.launcher3.action.LAUNCH intent explicit b/27967359

Change-Id: Iad2d0fe4662bae70ea3378fad82739a1df723ff6
2016-04-08 18:07:04 +00:00
Hyunyoung Song f9dc857a0e Make com.android.launcher3.action.LAUNCH intent explicit
b/27967359

Change-Id: I355ffc0af07d5bddcf87d41cf42bead9d5c824dc
2016-04-08 10:55:50 -07:00
Sunny Goyal 90f995521e Fixing debug log
Change-Id: I85c1f7707a3ea9cae2701aa781b74d758602f643
(cherry picked from commit 17763cb1d2)
2016-04-08 17:53:54 +00:00
Rubin Xu e7e7fc6995 Listen on new broadcasts for profile changes.
The change is due to API review comments on the platform side.

Bug: 27532254
Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
2016-04-07 16:06:28 -07:00
Sunny Goyal 194cf5061a No need to differentiate package event into app or updated based on
a package is being updated or not

Package update handling is a super set of package add handling  which
also updates the all-apps and package disabled state.
This also prevents addtion of a home screen icon when a managed profile
app on SD card become available.

Bug: 27877926
Change-Id: I9264e422fd30b94ce6ebb2e5adea820b3cda3063
(cherry picked from commit 144154d435)
2016-04-07 23:03:29 +00:00
Sunny Goyal 16affbdf30 Embedding the icon pixel size in the cache DB version.
This causes the cache to get reset when the icon size changes,
for eg, in case of display scale changes

Bug: 27701193
Change-Id: Ib11144757a93cb50fb233d855902c0b2c15afbed
2016-04-07 16:01:39 -07:00
Sunny Goyal 20adc79a90 Instead of reloading the launcher, updating items dynamically when
Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
2016-04-07 15:56:11 -07:00