Commit Graph

49925 Commits

Author SHA1 Message Date
Sunny Goyal 87af0fded6 Removing reference of hostView from LauncherAppWidgetInfo
LauncherAppWidgetInfo is a model item and does not need to reference
a view. Removing this dependency will allow cleaning up the
item unbinding logic

Bug: 28740269
Change-Id: I11fc2e2500b8fe29d157eefe74c70b1decdfd08d
2016-05-16 14:58:20 -07:00
Sunny Goyal b993ad6ac2 On some "non-standard" devices, load label can cause a security exception due to modified platform code am: 0d86a8dccf -s ours
am: 519a47d5c9

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

Change-Id: I9711c6ce9685c6a32eec186e84bc85323ada5cae
2016-05-16 20:07:49 +00:00
Sunny Goyal 519a47d5c9 On some "non-standard" devices, load label can cause a security exception due to modified platform code
am: 0d86a8dccf  -s ours

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

Change-Id: Ic2256db82871f26497f699dd4ded276db63ff0ac
2016-05-16 20:05:33 +00: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 c57ae2a1f2 Making the \'Allow rotation\' setting dependent on system state
am: f48e59268b

* commit 'f48e59268bf801cf4f4d1e6715871e14fea31ce3':
  Making the 'Allow rotation' setting dependent on system state

Change-Id: I27e9c2ef596c3beecac30e6f2fce05d67242ec90
2016-05-16 19:14:26 +00:00
Sunny Goyal f48e59268b Making the 'Allow rotation' setting dependent on system state
The setting will not be available on a tablet, where rotation is
always enabled. On mobiles, it will be disabled when auto-rotate
is disabled in display settings.
Also removing content provider dependency from settings, as its in the
same process as launcher.

Bug: 28704055
Change-Id: Ibe6b1e67411fb0e4b2e36446710f463e4a3d6883
2016-05-16 12:07:41 -07:00
Tony Wickham 517a99fe79 Call onLauncherTransitionPrepare() and End() from pinch.
am: f898b970cc

* commit 'f898b970cc9130d629d4bc969222aaa96a8a013a':
  Call onLauncherTransitionPrepare() and End() from pinch.

Change-Id: If4d6b6b7eb733f638c541bbb3971aac1c0a07b4e
2016-05-13 00:19:49 +00:00
Tony Wickham f898b970cc Call onLauncherTransitionPrepare() and End() from pinch.
This makes the pinch transition more consistent with other transitions.
One immediate benefit of this is that it updates adjacent overview
panels during pinch, regardless of whether they are completely visible.

Previously the adjacent panels' alphas weren't always reset to 0.
Specifically, if you made a small pinch from workspace, which
canceled and went back to workspace, adjacent pages retained a
slightly visible panel.

Bug: 27676309
Change-Id: I7e79fddec31cd649e0811e4524b9a9a501c627f9
2016-05-12 16:44:22 -07:00
Tony Wickham af114b847e Update page when scrolling/flinging in free-scroll.
am: 8f7ead3e94

* commit '8f7ead3e94d0550beb85b83a8c1d5e78a9abd69f':
  Update page when scrolling/flinging in free-scroll.

Change-Id: I42ebd61a143599b5190c8452620a87f3abc5b993
2016-05-12 23:40:55 +00:00
Tony Wickham 8f7ead3e94 Update page when scrolling/flinging in free-scroll.
Bug: 28054048
Change-Id: Ic22e7e717c3ead52dd6fb7495c37be3837e11030
2016-05-12 16:28:24 -07:00
Hyunyoung Song 4477cf659b Merge "Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 8249b928b7" into nyc-mr1-dev-plus-aosp
am: 3a40216fa0

* commit '3a40216fa0bb303c67730cf263846fd75736a052':

Change-Id: I7c477e7924d9500be1ab2eb7c26a530a45e1cc33
2016-05-12 21:46:47 +00:00
Sunny Goyal f9c36dd2c8 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 908298f567
am: 2aca1b1820

* commit '2aca1b18207451522a7c78720a97cfb790c345f5':
  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: I80fbb631c045229b227839631d395c190ce5d3cd
2016-05-12 21:46:47 +00:00
Android Build Merger (Role) 3a40216fa0 Merge "Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19 am: 8249b928b7" into nyc-mr1-dev-plus-aosp 2016-05-12 21:44:41 +00:00
Hyunyoung Song 896dd9a122 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19
am: 8249b928b7

* commit '8249b928b78403e887bde2d386594cbd6a2b0f0a':
  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: I3f65a30f618aa869efc34642242bb7d1c2cb34e9
2016-05-12 21:44:30 +00:00
Hyunyoung Song 2aca1b1820 Merge branch \'ub-launcher3-burnaby-nyc\' into launcher3merge am: 8c340dff19
am: 908298f567

* commit '908298f5675179acf44d325de09cfbf592b1806d':
  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: I72cb839742495c5272fc24a5c25ead892457e9f7
2016-05-12 21:44:30 +00:00
Sunny Goyal 908298f567 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: I102d05b078b85aae4e7eeb15c919d4aaec280942
2016-05-12 21:42:13 +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 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