Commit Graph

78507 Commits

Author SHA1 Message Date
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 c1987b280a Simplifying view cluster by using a single int flag instead of 4 booleans
am: 6dc98b9dc0

* commit '6dc98b9dc01f8e5cf5729b958f348af37e0117c6':
  Simplifying view cluster by using a single int flag instead of 4 booleans

Change-Id: Id019e3ef2ec1893b51e7b55d58c648532ddd18e6
2016-05-11 23:14:18 +00:00
Sunny Goyal 6dc98b9dc0 Simplifying view cluster by using a single int flag instead of 4 booleans
Also fixing the bug where dirty flgas were never being set to false

Change-Id: Idbb16d07bef5a157502e1652bd1beb33ff39faaa
2016-05-11 15:46:45 -07:00
Sunny Goyal 72297caa1d Removing icon_type column Icon type is not used consistently. It is used initially during the loader. Afterwards, we save both the icon and resource to the db. Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available, always write the bitmap to DB whenever the shortcut is edited.
am: eb4b79935e

* commit 'eb4b79935e9f75dda72e4953f45e616e252d7b03':
  Removing icon_type column Icon type is not used consistently. It is used initially during the loader. Afterwards, we save both the icon and resource to the db. Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available, always write the bitmap to DB whenever the shortcut is edited.

Change-Id: Ied43e481b22b444dc9d088f07bde98e7dffcec74
2016-05-11 22:33:59 +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 eb4b79935e Removing icon_type column
Icon type is not used consistently. It is used initially
during the loader. Afterwards, we save both the icon and resource to the db.
Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available,
always write the bitmap to DB whenever the shortcut is edited.

Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
2016-05-11 15:21:42 -07:00
Hyunyoung Song c4839d37db Merge "Fixing a crash/ Launcher3 doesn\'t have predicted apps" into ub-launcher3-calgary
am: 4dcd8ffecc

* commit '4dcd8ffecc5bbdc5c7496cea4eb6808f4026bf9e':
  Fixing a crash/ Launcher3 doesn't have predicted apps

Change-Id: I999591077dfd0c55f9a97533044d60864018c97b
2016-05-11 20:34:15 +00:00
TreeHugger Robot 4dcd8ffecc Merge "Fixing a crash/ Launcher3 doesn't have predicted apps" into ub-launcher3-calgary 2016-05-11 20:18:58 +00: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 373f5718f6 Fixing a crash/ Launcher3 doesn't have predicted apps
Change-Id: Id405e6d077f8b4c3fb399d4a613d6013dca5cddc
2016-05-11 11:26:01 -07:00
Sunny Goyal e36f2a429d Merge "Changing minSDK for launcher3 to 21 (Lollipop)" into ub-launcher3-calgary
am: 5a874d2a3d

* commit '5a874d2a3d80847917498462cdf4a1ed8e4e38a9':
  Changing minSDK for launcher3 to 21 (Lollipop)

Change-Id: I41b783db84b6bf409be309e0ab999cd9676ef408
2016-05-11 04:48:45 +00:00
Sunny Goyal 5a874d2a3d Merge "Changing minSDK for launcher3 to 21 (Lollipop)" into ub-launcher3-calgary 2016-05-11 04:44:38 +00:00
Hyunyoung Song 7273a503b2 Merge "Send predictedApps rank via user event logging" into ub-launcher3-calgary
am: da912837b3

* commit 'da912837b33629b305924a4efc5ec9511881d171':
  Send predictedApps rank via user event logging

Change-Id: I304abac611553bedf6a63ae0a04b0999c29da7e2
2016-05-11 00:14:05 +00:00
Hyunyoung Song da912837b3 Merge "Send predictedApps rank via user event logging" into ub-launcher3-calgary 2016-05-11 00:06:45 +00:00
Hyunyoung Song 6470cf449f Send predictedApps rank via user event logging
Change-Id: Ib492cb77bce0bc57f60bc4b1310df0810b63d0aa
2016-05-10 16:59:55 -07:00
Sunny Goyal 1cc60896fe build fix
am: bc543af01c

* commit 'bc543af01c2b37aba61e6979ae3424e5eca72e2b':
  build fix

Change-Id: I368cde2781ed4259828d8ee6b7d33e13caec8e2c
2016-05-10 23:34:38 +00:00
Sunny Goyal bc543af01c build fix
Change-Id: Ib31b7b4efa96897e7ea04412a9deae14a432b6c0
2016-05-10 16:28:32 -07:00
Sunny Goyal dd4759eb2d Adding full backup handler for launcher3
am: c190dbfb78

* commit 'c190dbfb784c0bca629b6966ce314d735cf98db3':
  Adding full backup handler for launcher3

Change-Id: I502886f8ac7bd04ae330900d284e65efd80ab5a6
2016-05-10 22:43:00 +00:00
Sunny Goyal d297be2148 Changing minSDK for launcher3 to 21 (Lollipop)
Change-Id: I421a33801886bdcccb43429b571af1ca7c6b9f55
2016-05-10 15:35:25 -07:00
Sunny Goyal c190dbfb78 Adding full backup handler for launcher3
Bug: 28302573

Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004
2016-05-10 15:27:24 -07:00
Sunny Goyal 37bfe69329 Merge "Removing LauncherProvider dependency in DatabaseHeler" into ub-launcher3-calgary
am: 78508ec5ab

* commit '78508ec5ab69367e52eef1e8c3273ad6e2c40fc6':
  Removing LauncherProvider dependency in DatabaseHeler

Change-Id: I042a1c0351bc606017c576377e92bd8ce8a769ba
2016-05-10 22:16:51 +00:00
Sunny Goyal 78508ec5ab Merge "Removing LauncherProvider dependency in DatabaseHeler" into ub-launcher3-calgary 2016-05-10 22:11:43 +00:00
Hyunyoung Song 43b0552726 Merge "Widgets tray should preserve scroll position during screen rotation" into ub-launcher3-calgary
am: adb8eb5a34

* commit 'adb8eb5a34ea3a31e4ac062e18aebb939e1f7567':
  Widgets tray should preserve scroll position during screen rotation

Change-Id: I98695e133b76492d909a2ab1b0de90a49772df2a
2016-05-10 20:54:24 +00:00
Hyunyoung Song adb8eb5a34 Merge "Widgets tray should preserve scroll position during screen rotation" into ub-launcher3-calgary 2016-05-10 20:49:13 +00:00
Hyunyoung Song bc5d623845 Widgets tray should preserve scroll position during screen rotation
> This used to work, but when I got rid of preloading which was
handled by linear manager to increase scrolling speed, the save
and restore instance that was being handled by the linear layout
manager created using Launcher context also went away. Hence,
bringing back custom LinearLayoutManager.

Change-Id: Ibccdf80533a5ace06cc6c6932b257c223cbac0ff
2016-05-10 13:46:13 -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
Sunny Goyal b5b55c8012 Removing LauncherProvider dependency in DatabaseHeler
This will allow DatabaseHeler to easily be moved to an independent class

Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0
2016-05-10 12:30:47 -07:00
Sunny Goyal f9021bc186 Merge "Using a separate thread for logging" into ub-launcher3-calgary
am: 6b360f684d

* commit '6b360f684da3bf4d36643a4325dec2d659900da9':
  Using a separate thread for logging

Change-Id: Id911cce659eeefecb33f47967ea72c3210a37c3e
2016-05-10 04:02:05 +00:00
Sunny Goyal 93037e05e5 Merge "Removing some obsolete flags" into ub-launcher3-calgary
am: 7cb519bde1

* commit '7cb519bde14f33aff39350a1e4cbb17e87d53abc':
  Removing some obsolete flags

Change-Id: I45e28a1b9d06990f72f3f0b865b2497beb7fd82a
2016-05-10 04:02:05 +00:00
Sunny Goyal 6b360f684d Merge "Using a separate thread for logging" into ub-launcher3-calgary 2016-05-10 03:49:28 +00:00
Sunny Goyal 7cb519bde1 Merge "Removing some obsolete flags" into ub-launcher3-calgary 2016-05-10 03:49:15 +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 91b40f2d4f Updating gradle version
am: 0292bd18fa

* commit '0292bd18fa92184947ebfd4de5db56a662a98934':
  Updating gradle version

Change-Id: I91a95276e55dd8f833813e4e0ef2717031c78006
2016-05-10 00:08:58 +00:00
Sunny Goyal 0292bd18fa Updating gradle version
Change-Id: I4f43a45576118572470703668ff3f495a25f3e3c
2016-05-09 16:57:58 -07:00
Tony Wickham 0521bbaa6c Extract color for the hotseat.
am: 462b5cca7b

* commit '462b5cca7bb1d5e24fb8277b0cfe238cc2e1e980':
  Extract color for the hotseat.

Change-Id: I83fe42945ff7e32d69885040f3eb473a12141e01
2016-05-09 23:01:10 +00:00
Tony Wickham 462b5cca7b Extract color for the hotseat.
- Only considers the bottom fourth of the wallpaper
- Is translucent black or white depending on how dark/light
  the wallpaper is
- Hotseat extends behind the nav bar

Bug: 27230217
Change-Id: Id4ea6ee91b4dd221b4c277d22d5041cab178801d
2016-05-09 15:41:38 -07:00
Sunny Goyal 14c73cc120 Using a separate thread for logging
Change-Id: I85a900bd70e01a7df2c2d8bd09c82cebdec2d3be
2016-05-09 15:33:52 -07:00
Sunny Goyal 6d9f167126 Merge "Adding a utility class for persistant logging." into ub-launcher3-calgary
am: 34a2d31f32

* commit '34a2d31f3208c64f6ebf403f8a0cb6ea96461747':
  Adding a utility class for persistant logging.

Change-Id: Ib5ce8987d9271379165d34ff3829482b7509e732
2016-05-09 21:16:28 +00:00
Sunny Goyal a26e2d3d93 Removing some obsolete flags
Change-Id: Id33e28ddd7341d2b494c4b2a294663091afdb157
2016-05-09 14:13:06 -07:00
Sunny Goyal b9bbb351ef Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-calgary
am: ac6d3a87ae

* commit 'ac6d3a87ae9a31873a34f3eae01979910740ade1':
  Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml

Change-Id: I768f13b539e4de683925f94d29d092023660c371
2016-05-09 21:11:02 +00:00
Sunny Goyal 34a2d31f32 Merge "Adding a utility class for persistant logging." into ub-launcher3-calgary 2016-05-09 21:06:04 +00: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
Sunny Goyal ac6d3a87ae Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-calgary 2016-05-09 20:53:39 +00:00
Sunny Goyal 713edfce26 Adding a utility class for persistant logging.
The logs are kept for at max 48 hours. It uses two log files and switches
between the two based on the day of the year.

Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
2016-05-09 12:47:42 -07: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