Commit Graph

10844 Commits

Author SHA1 Message Date
Sunny Goyal 041434fb59 Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish
am: 363da26646

* commit '363da26646b3214a437981fc3ad908ccd363f8f3':
  Preventing activity to restart when keyboard is connected or keyboard type changes
2015-10-16 18:37:37 +00:00
Sunny Goyal 363da26646 Merge "Preventing activity to restart when keyboard is connected or keyboard type changes" into ub-launcher3-burnaby-polish 2015-10-16 18:32:43 +00:00
Tony Wickham c2d77a5bb0 am fb062c63: Close some Cursors and call super.onFinishInflate().
* commit 'fb062c63355f65e6df9e99cbf4cce49cee2900d1':
  Close some Cursors and call super.onFinishInflate().
2015-10-16 17:17:46 +00:00
Tony Wickham fb062c6335 Close some Cursors and call super.onFinishInflate().
Android Studio gave these warnings, and they seem like good ideas.

Change-Id: I9a4d3997fd18e86e007e4511e1ac9e8a75509265
2015-10-16 10:12:23 -07:00
Tony Wickham 9ccb94b6e4 resolved conflicts for a8709ddb to ub-launcher3-master
Change-Id: I172395e6e172914627b6dec721070a66520557b1
2015-10-15 11:18:26 -07:00
Tony Wickham a8709ddbbf Merge "Fix "The specified child already has a parent" IllegalStateException." into ub-launcher3-burnaby-polish 2015-10-15 18:00:59 +00:00
Tony Wickham a0628cc521 Fix "The specified child already has a parent" IllegalStateException.
The problem was due to a race condition between removing a prebound
widget view from the drag layer and adding the same view to the
workspace upon dropping it; if you let go of the widget immediately
after picking it up, the latter happened before the former.

Specifically, the flow was: long-click a widget --> drop --> remove
the view from the drag layer if it's not null (it is, so nothing
happens) --> the view is finally bound/inflated and added to the drag
layer --> add the view to the workspace --> already has a parent.

There are actually 2 problems here: one is that the bind/inflate is
asynchronous, and can therefore happen after dropping the widget view
being inflated, and the other is that the view is added to the
workspace even though the transition has barely started (we usually
ignore drops if the transition is less than half complete). It turns
out that this second problem was also due to a race condition, this
time between dropping a widget or app onto the workspace and calling
LauncherStateTransitionAnimation.dispatchOnLauncherTransitionStart().
If the drop happened before the dispatch, as in the case of the
crash, then the drop was accepted because the transition progress was
still 1.0 from the previous transition.

I fixed the first problem by removing the drag layer widget view
in Launcher where it is potentially used instead of Workspace. And I
fixed the second problem by setting mTransitionProgress to 0 in
Workspace.onLauncherTransitionPrepare().

I also added some debugging logs.

Bug: 23896857
Change-Id: I66944e6d3f23b70dea15f7fb01af0763a1bfcbda
2015-10-15 10:07:06 -07:00
Sunny Goyal 9a9765924f am 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcuts
* commit '44b48f77027c386885ed459de501f9d822abac9c':
  Showing a permission prompt for direct call shortcuts
2015-10-14 19:19:24 +00:00
Sunny Goyal 44b48f7702 am 28c6b963: Showing a permission prompt for direct call shortcuts
* commit '28c6b963d4ccac73ab857c839420513dd560945c':
  Showing a permission prompt for direct call shortcuts
2015-10-14 19:16:24 +00:00
Sunny Goyal d9bb1b45e9 Preventing activity to restart when keyboard is connected or keyboard type changes
Bug: 20820889
Change-Id: Ib0b21c04290607ddd67cef2003e6d89f5d6492d8
2015-10-14 11:53:49 -07:00
Winson 6e6a9b4b54 resolved conflicts for e9f27273 to ub-launcher3-master
Change-Id: I96b062c3309eadf4d41a5f00ea74740bab78b358
2015-10-13 17:52:17 -07:00
Winson e9f2727385 Fixing issue with overview panel buttons.
Bug: 22699895
Change-Id: I8a2f05a6008343327e34cbd3169e4056729e0b75
2015-10-13 13:56:29 -07:00
Tony Wickham be424b2c32 am a295048a: Increase folder cell width slightly.
* commit 'a295048a69d35b5adc3f021c3d40c32700cc9629':
  Increase folder cell width slightly.
2015-10-12 23:25:24 +00:00
Tony Wickham a295048a69 Increase folder cell width slightly.
The increased breathing room makes it more likely that long app names
will fit in the folder cells without being cut off.

Bug: 22462641
Change-Id: I110ede040f9e8fdddbf0c4e7a395ac71435559f3
2015-10-12 15:57:23 -07:00
Geoff Mendal e906643c70 am f7203499: (-s ours) Import translations. DO NOT MERGE
* commit 'f7203499f40af2afbcf20d5ff7555c97d86ad841':
  Import translations. DO NOT MERGE
2015-10-12 20:55:17 +00:00
Tony Wickham 1636cddbb4 resolved conflicts for f685c7e5 to ub-launcher3-master
Change-Id: Iddf78c166f9ab89ffae2ddc819c9ba5cf5e988be
2015-10-12 13:34:28 -07:00
Sunny Goyal 28c6b963d4 Showing a permission prompt for direct call shortcuts
Bug: 24580949
Change-Id: Idc92f9f5979a730f43b4905af2bc47b6834dc7a7
2015-10-12 11:46:01 -07:00
Geoff Mendal 3abe12e933 Import translations. DO NOT MERGE
Change-Id: I8c8f3af2d54f551ce3ad381583c78590b4505d24
Auto-generated-cl: translation import
2015-10-12 07:01:16 -07:00
Geoff Mendal f7203499f4 Import translations. DO NOT MERGE
Change-Id: I30deecd0fedace5365a877a8333206e7cb015afb
Auto-generated-cl: translation import
2015-10-12 07:00:09 -07:00
Tony Wickham f685c7e5f7 Merge "Actually call LauncherTransitionable.onLauncherTransitionStep()." into ub-launcher3-burnaby-polish 2015-10-09 22:37:02 +00:00
Tony Wickham a72f49cfc4 resolved conflicts for fa3c369c to ub-launcher3-master
Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9
2015-10-09 10:05:56 -07:00
Tony Wickham fa3c369cc3 am 37860923: Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby
* commit '37860923619b1e467975a74764dff03ab657bdc7':
  Added launcher callback to specify search bar height.
2015-10-09 01:40:31 +00:00
Tony Wickham 3786092361 Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby 2015-10-09 01:37:39 +00:00
Tony Wickham 72c689a7a2 resolved conflicts for d70a4b7b to ub-launcher3-master
Change-Id: Ib04f80eeebf551fc026925830fc4739d1c620513
2015-10-08 18:32:22 -07:00
Tony Wickham d70a4b7b78 am d6b4037b: Grid adjustments, specifically for Ryu.
* commit 'd6b4037b093445fefa7d036da339dd549fae7a9b':
  Grid adjustments, specifically for Ryu.
2015-10-09 00:38:29 +00:00
Tony Wickham 55616cd363 Added launcher callback to specify search bar height.
The search bar can now be be normal or tall. When it is set to tall,
the hotseat and page indicators move down so that the workspace isn't
compressed quite as much.

Change-Id: Id92a946eab3a93524999f92efd847a501a95f002
2015-10-08 16:58:05 -07:00
Sunny Goyal e2722996e8 am 56c73604: Verify that the widget id is valid, before binding the widget
* commit '56c7360497823ed83d4eb04ef32c117e9c5608d6':
  Verify that the widget id is valid, before binding the widget
2015-10-08 21:52:26 +00:00
Sunny Goyal 462b32c484 am cf12698f: Merge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby-polish
* commit 'cf12698fccddc832069eece02b352d689bf950b6':
  Null check in PackageInstallerCompat
2015-10-08 21:52:25 +00:00
Sunny Goyal bc7b6607d5 am 5802588d: Merge "Update the widget spans after the provider changes" into ub-launcher3-burnaby-polish
* commit '5802588dc067f69914a0adaaec1c15825f0e720d':
  Update the widget spans after the provider changes
2015-10-08 21:52:24 +00:00
Sunny Goyal 56c7360497 Verify that the widget id is valid, before binding the widget
Bug: 23820213
Bug: 24054205
Bug: 24582322
Change-Id: I25a09b0a2a706812a7d82729b5dc554ffba84a2a
2015-10-08 14:49:55 -07:00
Sunny Goyal cf12698fcc Merge "Null check in PackageInstallerCompat" into ub-launcher3-burnaby-polish 2015-10-08 20:59:19 +00:00
Sunny Goyal 5802588dc0 Merge "Update the widget spans after the provider changes" into ub-launcher3-burnaby-polish 2015-10-08 20:57:51 +00:00
Sunny Goyal 3b5741c263 Null check in PackageInstallerCompat
Bug: 24582224
Change-Id: I2cd4ca12d48b3316a8a519092118d9e2970d944d
2015-10-08 13:56:59 -07:00
Tony Wickham d6b4037b09 Grid adjustments, specifically for Ryu.
> Less than 14% of the screen is used for left/right workspace padding.
  (To be clear, this means 7% for the left and 7% for the right.)
> Hotseat icons are the same size as workspace icons.
> Far left and right hotseat edges line up with workspace edges.
> All Apps button is scaled down 8dp.

Bug: 24003478

Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
2015-10-08 09:23:10 -07:00
Sunny Goyal 8db49fde38 am bbf01846: Using 23 instead of Build.Versoin.M until the final SDK is available.
* commit 'bbf0184603ce9395173f5e412d8188b4b0910f9e':
  Using 23 instead of Build.Versoin.M until the final SDK is available.
2015-10-08 14:45:47 +00:00
Sunny Goyal bbf0184603 Using 23 instead of Build.Versoin.M until the final SDK is available.
Change-Id: I9f8f6fe049afcd0ceb0797ddc803a2e77bab0437
2015-10-08 07:42:49 -07:00
Sunny Goyal 5425c67bc7 am d306055f: (-s ours) Moving a few testing classes to a separate package
* commit 'd306055f2d7750df08d9dfb9f630517e0b43f6eb':
  Moving a few testing classes to a separate package
2015-10-07 20:54:03 +00:00
Sunny Goyal b5772c8b4f am 21d89fbf: Merge "Fixing overscroll effect when the navigation bar is opaque" into ub-launcher3-burnaby-polish
* commit '21d89fbf8c444c64a4c85d25a25bbe3b79719de9':
  Fixing overscroll effect when the navigation bar is opaque
2015-10-07 20:45:51 +00:00
Geoff Mendal 8617b9ed13 am 79d0ac93: (-s ours) Import translations. DO NOT MERGE
* commit '79d0ac937ba6d6f332e3c43fe9db43b008a04d14':
  Import translations. DO NOT MERGE
2015-10-07 20:45:51 +00:00
Sunny Goyal 6280893534 am 6fb929e0: Verifying that the table was successfully created during initialzation
* commit '6fb929e0038a9d03b60540fdbf6b6914146f7b21':
  Verifying that the table was successfully created during initialzation
2015-10-07 20:45:50 +00:00
Geoff Mendal 70c88c7cbe am a67ba861: (-s ours) am 53d3be63: (-s ours) Import translations. DO NOT MERGE
* commit 'a67ba8612f4408c42bb6988304aeb86bd3382796':
  Import translations. DO NOT MERGE
2015-10-07 20:45:50 +00:00
Tony Wickham 439bc06dc0 am d47807d7: am 3a3517fb: Add widget size options for QSB.
* commit 'd47807d7a97d4ab555b2f9be882591c08955d699':
  Add widget size options for QSB.
2015-10-07 20:45:49 +00:00
Sunny Goyal fa13cd2407 am fd4264b2: (-s ours) Merge "Jailing the saved instance state of all the dynamically generated views" into ub-launcher3-burnaby-polish
* commit 'fd4264b2b52e294ccb1326784bdf1df2cd7fe14c':
  Jailing the saved instance state of all the dynamically generated views
2015-10-07 20:45:48 +00:00
Winson Chung 9ac21a6992 am bbb1aea1: Merge "Fixing regression when removing last item from folder." into ub-launcher3-burnaby-polish
* commit 'bbb1aea148270947cef90fe1c8d0ad5961ef392e':
  Fixing regression when removing last item from folder.
2015-10-07 20:40:32 +00:00
Geoff Mendal beeeb4fce0 am 521c59a8: (-s ours) Import translations. DO NOT MERGE
* commit '521c59a88201b0c74991d4928f19ece4d33e53c1':
  Import translations. DO NOT MERGE
2015-10-07 20:40:31 +00:00
Sunny Goyal 8bc1a13e1b am 95bae9a4: am c84e6e19: Disabling widget debug
* commit '95bae9a43d5192c4f8c3282c56647c6446aa3f72':
  Disabling widget debug
2015-10-07 20:40:30 +00:00
Winson cfd9bef6ee am 44818e07: Fixing regression in removing widgets via accessibility.
* commit '44818e07af5312fac0c97360929c62e599cfd164':
  Fixing regression in removing widgets via accessibility.
2015-10-07 20:40:29 +00:00
Sunny Goyal ccc9a52e45 am 935eedad: Merge "Do not reinflate/rebind widgets if we are going the rebind the full workspace anyway." into ub-launcher3-burnaby-polish
* commit '935eedad971d6d27521a16501768f06ebd9eb6a6':
  Do not reinflate/rebind widgets if we are going the rebind the full workspace anyway.
2015-10-07 20:40:28 +00:00
Winson e98bcdbb9c am 34ef93cc: am 058c21db: Ensure accessibility delegate is set on all apps icons.
* commit '34ef93ccd6e2cdb4b12cf7bf6bedf8216662e2b2':
  Ensure accessibility delegate is set on all apps icons.
2015-10-07 20:40:27 +00:00
Sunny Goyal 0d6021ae6d am a682a5d8: Make sure that the dimensions are not negative when drawing pending widget
* commit 'a682a5d8c747ac9cbbe10fb791a0548863422270':
  Make sure that the dimensions are not negative when drawing pending widget
2015-10-07 20:40:26 +00:00