Commit Graph

10318 Commits

Author SHA1 Message Date
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
Baligh Uddin 09befd9941 Merge "Import translations. DO NOT MERGE" into ub-launcher3-burnaby-nyc 2016-05-18 19:06:23 +00:00
Baligh Uddin 03dc99c0ba Import translations. DO NOT MERGE
Change-Id: Ie23f2e6ed183ef562db099f159b11402c3a959b6
Auto-generated-cl: translation import
2016-05-17 00:21:31 -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 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
Bill Yi f510921b8f Import translations. DO NOT MERGE
Change-Id: If880a86cfb961d3c9a657a39cab72dcba77f8f53
Auto-generated-cl: translation import
2016-05-09 02:24:39 -07:00
Baligh Uddin ec997b9b6e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 28632138
Change-Id: I8ac83686d296b781d7a9dbb0e9961990793c83cd
2016-05-06 09:34:49 -07:00
Baligh Uddin fc4faab9cb Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 28632138
Change-Id: I750d21dcd55652032c4a2fb02351accae3ceff8c
2016-05-06 09:26:23 -07: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 bcc53286c2 Fix recyclerview res path
Manually cherry picking ag/943086

Change-Id: I37b75a04e3fff61b4bd42625a060c41e0fe7e85d
2016-04-19 22:24:40 -07:00
Sunny Goyal fceb9ff0f5 Passing the full image and crop hint when setting the wallpaper
Bug: 25454157
Change-Id: Ia0ae7dd4963b72cd7902622847deedfcb5a0eca2
2016-04-18 16:36:37 -07:00
Tony Wickham 0a197dbbf6 Prompt to set URI wallpapers on lock screen (missed before).
Change-Id: I5328a9861ce2843aba36ecad172eb0e364a816a0
2016-04-13 15:04:30 -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 4e04695cde Merge "Giving proper workspace description when the launcher is not loaded." into ub-launcher3-burnaby-nyc 2016-04-13 00:44:18 +00:00
Adam Cohen f47e5ceafd [DO NOT MERGE] Address some spacing issues in all apps related to new support library
am: d797327  -s ours

* commit 'd797327b79c5ded53f698201af5abb7d779ddfa9':
  [DO NOT MERGE] Address some spacing issues in all apps related to new support library

Change-Id: I8c38d1c542f1143dd7c9f330795229b4a03c7ac8
2016-04-12 23:55:03 +00:00
Adam Cohen 9c6f32c2aa [DO NOT MERGE] Address some spacing issues in all apps related to new support library
issue 27581978

Change-Id: If7a1ea19aa586bb3de6bde960b16e59f86061227
(cherry picked from commit d797327b79)
2016-04-12 23:46:16 +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
Adam Cohen d797327b79 [DO NOT MERGE] Address some spacing issues in all apps related to new support library
issue 27581978

Change-Id: If7a1ea19aa586bb3de6bde960b16e59f86061227
2016-04-12 14:22:11 -07: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
Tony Wickham db5808fcfd Merge "Add dialog to set Default Wallpaper on lock screen for N+." into ub-launcher3-burnaby-nyc 2016-04-11 23:18:01 +00:00
Tony Wickham b64726e4e9 Add dialog to set Default Wallpaper on lock screen for N+.
Change-Id: I91c77f5751202f9a4b3a922726ab55e354c50b4a
2016-04-11 15:57:24 -07:00
Sunny Goyal 5734e6373b [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver
am: d435cc0  -s ours

* commit 'd435cc070ad72d2e94546d274e29159ee4c21a9a':
  [DO NOT MERGE] Changing WallpaperChangeReceiver to a runtime registered broadcast receiver

Change-Id: I465ad63e4d9be6d82f2c5d0908422976e2779e5a
2016-04-11 20:39:16 +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
Tony Wickham b2694f5482 Disable "Set wallpaper" action bar when no tile is selected.
Change-Id: Ia21dfb8248fc607e3f5606f2cac18345cff6f260
2016-04-11 12:01:09 -07:00
Tony Wickham d550eea542 Merge "Prompt users to set wallpaper on lockscreen on N+." into ub-launcher3-burnaby-nyc 2016-04-11 18:59:18 +00:00
Tony Wickham aac9af46c0 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
2016-04-11 11:31:16 -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 53169865af Fixing a typo from <array> to <string-array>
am: 63d093d

* commit '63d093de024a5e1bd26b71bd823df0017d1ec945':
  Fixing a typo from <array> to <string-array>

Change-Id: I3f7bc583b8706d805f36b70049223653c5d5d807
2016-04-08 21:37:28 +00:00
Hyunyoung Song 63d093de02 Fixing a typo from <array> to <string-array>
Change-Id: Iadbbe59e0ba93a21373056fe6b4af9db7ce39f66
2016-04-08 12:17:25 -07: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