Commit Graph

11880 Commits

Author SHA1 Message Date
Sunny Goyal b05a00a441 Adding a debug flag to prevent broken downlodas from getting removed during
restore

After setting this flag apps do not need to have an active settion during restore
which would simplyfy debugging backup-restore bugs.

Change-Id: I89f2d3ec677281887f8bab8559ace991709caadc
2016-08-29 11:19:26 -07:00
Sunny Goyal 4a4b49ff34 Fixing wrong label in the AndroidManifest
Updating the gradle and protobuf library version

Change-Id: I0470ebe7465cf2f04ef59688ac2b3f4933d48ad1
2016-08-25 22:23:06 -07:00
Sunny Goyal bb248828fc Merge "Improve handling of external deletion in LauncherProvider.delete" into ub-launcher3-calgary-polish 2016-08-26 02:45:38 +00:00
Sunny Goyal c855023982 Updating the workspace scrim
The scrim is only drawn on the top in both normal & transposed layout

Bug: 29189114
Change-Id: I99bbf4c4a73e172e000ef24af0662e1922592e0a
2016-08-25 16:16:11 -07:00
Sunny Goyal 2fb1356be6 Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish 2016-08-25 22:49:24 +00:00
Sunny Goyal f3a09f9757 Starting the settings activity with same animation as wallpaper (and widgets tray)
Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526
2016-08-25 09:46:39 -07:00
Hyunyoung Song c760da5688 Merge "Prevent against NPE inside ComponentKey" into ub-launcher3-calgary-polish 2016-08-24 23:30:05 +00:00
Hyunyoung Song ada6cbe4ef Prevent against NPE inside ComponentKey
b/31063280

Change-Id: I71254fc1a3244fd6834ebf65923d194f17afc1ba
2016-08-24 16:23:09 -07:00
Sunny Goyal d56b157004 Fixing the hotseat import logic
am: d70ef24233

Change-Id: I1be426419d7a7f044dfd81207c3ee3b1df43b404
2016-08-24 23:02:08 +00:00
Sunny Goyal d70ef24233 Fixing the hotseat import logic
The import logic following the behavior: Improt everything and force
run GridMigrationTask to automatically remove broken icons.
This logic would fail for hotseat as the replacement happens before
the GridMigrationTask, which will not replace the broken targets
appropriately

The cl changes some logic only for hotseat import
> After import remove any broken icons/empty folders
> When adding default icons, only add as much icons as required. Since
GridMigrationTask uses weights, it sometimes removes imported icon, if
the hotseat size becomes too large.

Bug: 30909630
Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91
2016-08-24 11:31:13 -07:00
Sunny Goyal b68f959992 Merge "Comparing widget sizes when sorting if the labels are same" into ub-launcher3-calgary-polish 2016-08-24 02:16:48 +00:00
Sunny Goyal 65ceb5aa55 Moving the scrim to draglayer
> This causes the scrim to animate with the content on first launch
> Also removing the logic to disable scrim based on state. That
logic was only executing onResume which could lead to an invalid state

Bug: 30972956
Bug: 30576826

Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01
2016-08-23 19:04:23 -07:00
Sunny Goyal 9601b96df6 Checking for duplicate intent with proper source bounds.
am: 92cb84d4e5

Change-Id: I934ffa4fbb1a9be31d19f69554092af77fe06612
2016-08-24 00:55:07 +00:00
Sunny Goyal 92cb84d4e5 Checking for duplicate intent with proper source bounds.
Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
(cherry picked from commit cbfe71dba3)
2016-08-24 00:46:01 +00:00
Sunny Goyal cbfe71dba3 Checking for duplicate intent with proper source bounds.
Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
2016-08-23 13:27:38 -07:00
Sunny Goyal 527c27c04e Merge "Adding a resource pointer to the app name so that derived projects can easily modify app name" into ub-launcher3-calgary-polish 2016-08-23 20:04:53 +00:00
Hyunyoung Song 6b5e60d0e4 Merge "Landscape container padding update. b/30021487" into ub-launcher3-calgary-polish 2016-08-23 18:11:25 +00:00
Hyunyoung Song 9d96fd5790 Landscape container padding update.
b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
2016-08-23 11:06:24 -07:00
Sunny Goyal 112ce42926 Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c
2016-08-22 16:45:58 -07:00
Tony Wickham 5f2ea1e9ce Cancel hotseat color animator before setting a new color.
am: ef0c537925

Change-Id: I1aea3e288d7e54e788ad95b8599e6d909458b220
2016-08-22 23:23:09 +00:00
Tony Wickham ef0c537925 Cancel hotseat color animator before setting a new color.
There was a race condition that caused the new color to not be
applied. For example, here's how the hotseat would become transparent:
1 Launcher is loaded for the first time; as such, there is not yet a
  color defined for the hotseat, so we start animating to the provided
  default (Color.TRANSPARENT). Meanwhile we start the color extraction.
2 When the color extraction finishes, we set the hotseat to the new
  color. However, if launcher is paused at the time (perhaps some
  retail mode content is showing), then we don't animate the change.
3 If 2 happens before the animation in 1 is complete, the color from
  2 will be overriden by subsequent animation frames and thus the
  hotseat remains transparent until the wallpaper changes.

Bug: 30956221
Change-Id: Iddf72379b0162f1b32883ad26ce267473e172849
2016-08-22 15:23:01 -07:00
Sunny Goyal a1503f47aa Comparing widget sizes when sorting if the labels are same
Bug: 21441837
Change-Id: Ib0e6d3b84389f900264a0d696d22057426973719
2016-08-18 19:09:46 -07:00
Sunny Goyal 8f90dcff37 Removing wrong dead code around direction matching
Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
2016-08-18 15:08:22 -07:00
Sunny Goyal ad9a25d4be Fixing allApps UI not extending to statusbar & navbar on tablets
AllApps UI on tablets includes the extra gray bottom bar at the bottom
for nav-bar background protection, and should overlay the nav bar

Change-Id: Idb138b714c34de5510eb9aedfcefb22c9189eee4
2016-08-18 11:34:55 -07:00
Sunny Goyal e2b2fb79fc Merge "Adding support for pending widgets in AutoInstall layout" into ub-launcher3-calgary-polish 2016-08-17 23:02:42 +00:00
Sunny Goyal c816967f91 Merge "Fixing broken accessibility drag" into ub-launcher3-calgary-polish 2016-08-17 20:53:58 +00:00
Sunny Goyal 4583d09c05 Fixing broken accessibility drag
> Allow touch events on hotseat while in accessible drag as drag now
happens in spring loaded state.
> Allow drop target buttons to ignore thershold check when in
accessibility drag

Bug: 30900444
Change-Id: I88274367983fc027b2ddde3a719ca943f4f48587
2016-08-17 11:24:10 -07:00
Bill Yi 950e8ed321 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
am: c9efe2ba9c  -s ours

Change-Id: I1fbfd1be22e96d99d05a76e480fc6dca290bc519
2016-08-16 21:07:34 +00:00
Bill Yi ea9b82baaa Import translations. DO NOT MERGE
am: 2deaba905f  -s ours

Change-Id: I4d456a029be23f5a716cac7b3132cdf82f27bac9
2016-08-16 21:07:34 +00:00
Louis Begin a9c21c624c Improve handling of external deletion in LauncherProvider.delete
When deleting a widget, ensure that we also delete the corresponding
widget from the system server

Bug 30835877

Change-Id: I7d539c2d37ef53086d09ae128f7278941f804aeb
2016-08-16 12:43:05 -07:00
Sunny Goyal 86df138d9f Adding support for pending widgets in AutoInstall layout
> Pending widgets whill show a loading progress while the app
is being installed.
> Extra bind options can be defined using the tub tags
    <extra key="key-name" value="key-value" />
  These are sent as widget options when the widget is bound.
> If the widget has any config activity, it is not shown
> Required attributes:
   className, packageName, x, y, spanY, spanY & screen

Bug: 30279609
Change-Id: I1338618bfa5d86967339dffb68c12b1add6eb5d7
2016-08-16 12:37:29 -07:00
Sunny Goyal b9b41b835e Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary-polish 2016-08-16 17:49:46 +00:00
Sunny Goyal d1602ddfdf Merge "Moving the state changes during drag-n-drop from startDrag to onDragStart" into ub-launcher3-calgary-polish 2016-08-16 17:47:59 +00:00
TreeHugger Robot d7058f2b06 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-08-16 15:35:23 +00:00
TreeHugger Robot c9efe2ba9c Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-08-16 15:35:19 +00:00
Sunny Goyal a968be35be Merge "Updating version check to use SDK_INT" into ub-launcher3-calgary
am: 6fbdc09e1c

Change-Id: I07d87b14a1ef22c035ff8074a1649ead32a4b728
2016-08-16 02:51:10 +00:00
Sunny Goyal 6ff0c6f299 Updating version check to use SDK_INT
am: a9206128a2

Change-Id: If87c82149d086c056e6116a313519833c38a77dd
2016-08-16 02:51:10 +00:00
Sunny Goyal 6fbdc09e1c Merge "Updating version check to use SDK_INT" into ub-launcher3-calgary 2016-08-16 02:44:51 +00:00
Sunny Goyal a9206128a2 Updating version check to use SDK_INT
Change-Id: Idb46053e7304bc8d0cab03a17a6fe73013e4f092
2016-08-15 19:35:22 -07:00
Hyunyoung Song 54d3a264c0 [DO NOT MERGE] Set launch source target correctly for user event logging
am: 5a17fe6ca0  -s ours

Change-Id: I08c7d7ca433577cc676b5ed005af03dd2110e8a1
2016-08-16 02:10:38 +00:00
Bill Yi 2911dcd6fa Import translations. DO NOT MERGE
Change-Id: If3c9e57ec6801605397ff16f2ec93c6aaeda665e
Auto-generated-cl: translation import
2016-08-15 18:00:59 -07:00
Bill Yi 2deaba905f Import translations. DO NOT MERGE
Change-Id: I96007581be40da18813dfcb8606bc6d8fed29e54
Auto-generated-cl: translation import
2016-08-15 17:59:41 -07:00
Hyunyoung Song 5a17fe6ca0 [DO NOT MERGE] Set launch source target correctly for user event logging
Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT

Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
(cherry picked from commit 8ce6063c4a)
2016-08-16 00:40:26 +00:00
Hyunyoung Song be37dcb1b1 Merge "Set launch source target correctly for user event logging" into ub-launcher3-calgary-polish 2016-08-16 00:39:56 +00:00
Hyunyoung Song 8ce6063c4a Set launch source target correctly for user event logging
Before, everything is set to APP_ICON
With this changed, pinned shortcuts are set to DEEPSHORTCUT

Change-Id: I3e17de63f58693525236290ef5cb1f909f1d6098
2016-08-15 16:22:20 -07:00
Tony Wickham f12ab0733c Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary
am: e8882f7d27

Change-Id: I68b3f7ca4aca025962fb0e1e1206b07c2ff1b8d1
2016-08-15 23:15:27 +00:00
Tony Wickham 6bb6711f4e Ignore clicks on shortcuts' drag handles.
am: e04a07f6ac

Change-Id: I96360a63524edeff3e2aa9b21707c1c81a79012f
2016-08-15 23:15:27 +00:00
Tony Wickham e8882f7d27 Merge "Ignore clicks on shortcuts' drag handles." into ub-launcher3-calgary 2016-08-15 22:52:56 +00:00
Tony Wickham e04a07f6ac Ignore clicks on shortcuts' drag handles.
When touching down within the drag handle's bounds, we remove the
onClickListener temporarily (restored when touching down outside
of the drag handle's bounds). Long clicks still start the drag.

Also increased drag threshold from 12dp to 16dp.

Bug: 30816665

Change-Id: I0b33dc34bf95c0532376f2f7cf50865fa50093de
2016-08-15 14:02:08 -07:00
Sunny Goyal bf206123a8 Blocking alpha animation if the initial and final state for the animation
are both 0

Bug: 30739854
Change-Id: I4f7c579dc3f64a4fed60d7b2f8ecd5f359e165ec
2016-08-15 11:02:36 -07:00