Commit Graph

11769 Commits

Author SHA1 Message Date
Tony Wickham df23837d99 Only show App Info drag target if developer settings are enabled.
Bug: 28794577
Change-Id: Ia515a627a4f94121c47386829c6772bea42e70f1
2016-05-17 17:52:39 -07:00
Sunny Goyal 73306bf56b instead of unbinding items from the loader, unregistering listeners in activity.onDestroy()
am: aaf7d1d13b

* commit 'aaf7d1d13bd88bdeac5c56a9ab1d293fdaea3c11':
  instead of unbinding items from the loader, unregistering listeners in activity.onDestroy()

Change-Id: I6ae696f375a15a396d762a84bd148317e847ac11
2016-05-17 22:03:56 +00:00
Sunny Goyal 889985b44a Merge "Revert "Wrapping folderLisners with weak reference, and storing it as an array"" into ub-launcher3-calgary
am: 5b83d6ce8f

* commit '5b83d6ce8f7391aab67b7c53d972380fe0762ced':
  Revert "Wrapping folderLisners with weak reference, and storing it as an array"

Change-Id: Ie82f664b8562d96b73a57b0f88a59f8d0184133d
2016-05-17 21:43:45 +00:00
Sunny Goyal aaf7d1d13b instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
2016-05-17 14:42:10 -07:00
Sunny Goyal 5b83d6ce8f Merge "Revert "Wrapping folderLisners with weak reference, and storing it as an array"" into ub-launcher3-calgary 2016-05-17 21:27:46 +00:00
Sunny Goyal 90cb3e51af Revert "Wrapping folderLisners with weak reference, and storing it as an array"
This reverts commit e48644a6cc.

Change-Id: I7bd1d09cae42193de228cb58c08526eeaf57ec04
2016-05-17 21:25:48 +00:00
Sunny Goyal b7af85a667 Merge "Wrapping folderLisners with weak reference, and storing it as an array" into ub-launcher3-calgary
am: 192ae6ca71

* commit '192ae6ca71b0a1401ad44020b631c634a348597e':
  Wrapping folderLisners with weak reference, and storing it as an array

Change-Id: Icc6f57d05b53b452073038f612a8277f8b395be4
2016-05-17 20:41:37 +00:00
Sunny Goyal 192ae6ca71 Merge "Wrapping folderLisners with weak reference, and storing it as an array" into ub-launcher3-calgary 2016-05-17 20:29:12 +00:00
Sunny Goyal e48644a6cc Wrapping folderLisners with weak reference, and storing it as an array
Storing as an array allows the listeners to be overriten on next bind.
These changes remove the need to unbind the item

Bug: 28740269
Change-Id: Ibbe4b760d64784fbe3075d18e2b946b366d631c5
2016-05-17 12:44:15 -07:00
Sunny Goyal 841c19619e Opening the system default wallpaper picker on clicking the wallpaper tile
am: 04cc3a7bea

* commit '04cc3a7beabf03c2e09c3b3e99601fe983a3d897':
  Opening the system default wallpaper picker on clicking the wallpaper tile

Change-Id: I1f256234b05ad655ad66531e5fda78c93d14e334
2016-05-17 18:57:31 +00:00
Sunny Goyal 04cc3a7bea Opening the system default wallpaper picker on clicking the wallpaper tile
Bug: 28790378
Change-Id: If283b60a0b9563ab8e80d49b0ffa195fc3ffda8a
2016-05-17 11:29:46 -07:00
Baligh Uddin f478efd10c Import translations. DO NOT MERGE
Change-Id: I799b7bb6b24c2ef7cd1026863cb5daae32ea346b
Auto-generated-cl: translation import
2016-05-17 00:22:34 -07:00
Baligh Uddin cc60ed63a7 Import translations. DO NOT MERGE
Change-Id: I6ed48cc0d1df572fa6aa007722fd1bb4246cd6c5
Auto-generated-cl: translation import
2016-05-17 00:22:02 -07:00
Sunny Goyal 7d1934981b Merge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3-calgary
am: 840e1b3a82

* commit '840e1b3a82a1c8dd35d4d16fcf8673fe8a3ca965':
  Removing reference of hostView from LauncherAppWidgetInfo

Change-Id: I214808953830e86db5c4ce429161f64de03e420a
2016-05-17 02:26:01 +00:00
Sunny Goyal 840e1b3a82 Merge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3-calgary 2016-05-17 02:22:11 +00:00
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 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
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 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
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
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