Commit Graph

11457 Commits

Author SHA1 Message Date
Sunny Goyal 1fa6b9499b When the active page changes, simulate a scroll change.
This prevents the animation progess from going out of sync of the
active page, when the active page changes before the total number of
pages change

Bug: 29113836
Change-Id: I2b12ea29d64dc98d773e6060de4b655d3f975b5a
2016-06-08 15:13:53 -07:00
Sunny Goyal ab06999a70 Fixing crash on Lollipop
Fragment.getContext is available from MNC onwards.
Using getActivity instead

Change-Id: I99ef98947879ff165895fc76facb438cd4b8b414
2016-06-08 12:00:02 -07:00
Sunny Goyal e820198406 Merge "Adding support for workspace state change listener" into ub-launcher3-calgary 2016-06-08 17:02:57 +00:00
Sunny Goyal 9443ef5ec6 Adding support for workspace state change listener
Change-Id: Id0a4bcf345ce928544f5d406f37252a00d1dc7af
2016-06-07 16:21:47 -07:00
Hyunyoung Song 94c6b11bf6 Merge "Fix NexusLauncher NPE" into ub-launcher3-calgary 2016-06-07 22:46:33 +00:00
Hyunyoung Song 2e041a61af Fix NexusLauncher NPE
Change-Id: Ieb1144487841d7ea4ae880bf8e6c2334a2145e7e
2016-06-07 15:37:51 -07:00
Adam Cohen f0c721b7c8 Merge "Ensure that custom actions are available to all apps items" into ub-launcher3-calgary 2016-06-07 22:08:05 +00:00
Adam Cohen 6e92f05314 Ensure that custom actions are available to all apps items
-> When BubbleTextViews were being recycled, the RecyclerView was clearing the
   AccessibilityDelegate. Ensure that this is reset by the adapter when a
   BubbleTextView is reused.

issue 25948877

Change-Id: I95dd21bfdcd602a67925d1b8f06e6ca92d1d7203
2016-06-07 14:33:03 -07:00
Sunny Goyal 081cca3731 Merge "Fixing FileLogs tests" into ub-launcher3-calgary 2016-06-07 21:06:06 +00:00
Sunny Goyal e0e0e1d000 Fixing FileLogs tests
During tests, the logs directory is changed. But the active thread
was not getting stopped which was causing some logs to be written
to the old location corresponding to some previous test

Change-Id: I7b8587eae0eb68fa180e3992694cab3745922483
2016-06-07 13:54:50 -07:00
TreeHugger Robot 09e948703f Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-07 20:47:52 +00:00
Bill Yi 6c88d40659 Import translations. DO NOT MERGE
Change-Id: Idd8897ea385ab5190750df3179e21a829d160099
Auto-generated-cl: translation import
2016-06-07 13:42:19 -07:00
Bill Yi 66813d0a80 Import translations. DO NOT MERGE
am: 21c2d8f244  -s ours

* commit '21c2d8f244dae711b12339cc6e643cd34ef8dcd6':
  Import translations. DO NOT MERGE

Change-Id: Idcac20c106c76d9701b291972676610807a4a291
2016-06-07 20:22:47 +00:00
Bill Yi 21c2d8f244 Import translations. DO NOT MERGE
Change-Id: Ifcd878b149cbe2b1b2a021024039f30aef1a36a7
Auto-generated-cl: translation import
2016-06-07 13:03:19 -07:00
Sunny Goyal 2a5b356375 Merge "Allowing the first screen to expand to the screen edge" into ub-launcher3-calgary 2016-06-07 17:10:33 +00:00
Sunny Goyal 4c395f2367 Merge "Removing the SearchDropTarget bar as it no longer contains the QSB" into ub-launcher3-calgary 2016-06-07 17:05:19 +00:00
TreeHugger Robot 033f4ea716 Merge "Guard all apps pull up work behind the flag" into ub-launcher3-calgary 2016-06-07 04:18:24 +00:00
Hyunyoung Song b11ae50fcb Guard all apps pull up work behind the flag
b/28917826

Change-Id: Ic001d820bad777d90c6bdcd1a17b6961e38769be
2016-06-06 21:04:36 -07:00
TreeHugger Robot e9c5f8925f Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-07 02:25:29 +00:00
Sunny Goyal 7c786f75d1 Allowing the first screen to expand to the screen edge
This allows the QSB to extend all the way to the edge
Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
2016-06-06 16:41:57 -07:00
Bill Yi c094eeff75 Import translations. DO NOT MERGE
Change-Id: Ia6c33079c6d94e4e6045fba33317f886cc6d9907
Auto-generated-cl: translation import
2016-06-06 16:27:25 -07:00
Sunny Goyal 47328fd53f Removing the SearchDropTarget bar as it no longer contains the QSB
> Renaming it to simply DropTargetBar
> Moving AppInfo to the top bar as well
> The workspace pages will extend to the top edge (minus some padding).
Since the QSB is no longer displayed on top of every page, there is
no reason to reserve the space.
> In spring-loaded mode, the workspace cell layout will scale enough
to make room for the drop target bar at the top

Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
2016-06-06 16:15:46 -07:00
Hyunyoung Song 63741779e5 Merge "Pull up all apps interaction First phase implementation: dragging and animation interaction is implemented namely in two classes. ScrollGestureDetector and AllAppsTransitionController." into ub-launcher3-calgary 2016-06-06 21:20:45 +00:00
Hyunyoung Song 645764e3e5 Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented
namely in two classes. ScrollGestureDetector and AllAppsTransitionController.

FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and
not in the extending builds. This way, we can safely iterate without
turning it on the shipped ready version.
b/28917826

Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
2016-06-06 14:19:02 -07:00
Sunny Goyal 02d3d43d97 Fixing memory leak in QSB widget
> Instead of recreating the whole fragment, only recreating the views
when reinflating
> Binding the fragment in xml instead of in code

This prevents duplicate fragment binding

Bug: 29120662
Change-Id: I25b942f64d68f25e1358f15d8a919daeebdcff9c
2016-06-03 13:38:52 -07:00
Tony Wickham 795e37cd62 Merge "Animate size and position of page indicator when adding/removing page" into ub-launcher3-calgary 2016-06-02 18:27:56 +00:00
Tony Wickham 034bc3c01c Animate size and position of page indicator when adding/removing page
Change-Id: I85f37a4e0aeb8c3fd0bd8da3b90338d0333a84d5
2016-06-01 17:59:37 -07:00
Bill Yi 074290b873 Import translations. DO NOT MERGE
Change-Id: I98b86e3d83370b4548154c5b290faffa1f05ca5c
Auto-generated-cl: translation import
2016-06-01 07:21:12 -07:00
Tony Wickham d4b28d2e1b Only show workspace page indicator when scrolling or in spring-loaded mode.
- Stop showing indicator when resuming or ending transitions.
- In spring-loaded mode, prevent page indicator from auto-hiding.

Change-Id: I87070d2d8f46cf491e60380aed5540196f2fbba3
2016-05-31 17:00:41 -07:00
Sunny Goyal 85fc55a976 Disabling stricty mode checks when launching an activity.
The default strict mode policy in NYC cause death penalty when
when sharing file URI in intent. This causes launcher to crash
for users who have shortcuts of images and documents on their
homescreen.

Bug: 28853579
Change-Id: If84cd5ff732713aaff5d3164edf428c8b4233ea2
2016-05-31 12:51:08 -07:00
Sunny Goyal da4fe1a624 Moving the QSB to the workspace grid.
The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
2016-05-27 18:23:29 -07:00
Hyunyoung Song c54c701a94 Merge "Add feature flag for all apps pull up work." into ub-launcher3-calgary 2016-05-27 19:15:16 +00:00
Sunny Goyal c0cc264b03 Fixing comments
Change-Id: I412fef8e07d91548beb8a5431d6aa86611237f69
2016-05-27 12:11:45 -07:00
Hyunyoung Song 71566db28d Add feature flag for all apps pull up work.
b/28917826

Change-Id: I98b647694b1041ef4061dcd6297b63f11fddc7ea
2016-05-27 12:10:03 -07:00
Sunny Goyal 0b50421583 Merge "Adding some UI tests > Launcher app from all-apps > Drag icon to all-apps and launch it > Add widget from widget tray" into ub-launcher3-calgary 2016-05-27 19:00:44 +00:00
Sunny Goyal ff4ba2d995 Refactoring out grid occupancy management in a separate class
Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
2016-05-27 09:12:26 -07:00
Sunny Goyal 3c4b03dd01 Merge "Showing a permission dialog when a restored widget is not yet bound, and launcher does not has the permission to bind the widget" into ub-launcher3-calgary 2016-05-27 00:44:57 +00:00
Sunny Goyal d478c83fd6 Showing a permission dialog when a restored widget is not yet bound, and launcher
does not has the permission to bind the widget

Change-Id: I51d32b9958f82671b928d559105129261fb8f268
2016-05-26 17:44:29 -07:00
Sunny Goyal 6d02c7a033 Adding some UI tests
> Launcher app from all-apps
> Drag icon to all-apps and launch it
> Add widget from widget tray

Change-Id: I6bd6128a7b560a23a887d1fb40bfcda25b9b02e7
2016-05-26 17:20:22 -07:00
Sunny Goyal 5c93eac3ae Merge "Adding a loading view for widgets list" into ub-launcher3-calgary 2016-05-26 23:40:06 +00:00
TreeHugger Robot 3c62137adf Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-05-26 17:03:47 +00:00
Kenny Guy 367da9f422 Update wallpaper API to match NYC change.
Update check for whether setting wallpaper
is allowed for renamed API.

Bug: 28954131
Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5
2016-05-26 11:11:06 +00:00
Bill Yi b3290fd1d1 Import translations. DO NOT MERGE
Change-Id: I3e46a07d27c7e8578532ec595aae472e67c0764d
Auto-generated-cl: translation import
2016-05-25 18:38:23 -07:00
Sunny Goyal c2978a241b Merge "Storing the widget item views in Widget holder, to avoid looks on every bind/recycle" into ub-launcher3-calgary 2016-05-25 20:38:51 +00:00
Sunny Goyal b765b182a4 Merge "Removing logic for workspace migration from Launcher2" into ub-launcher3-calgary 2016-05-25 19:26:18 +00:00
Sunny Goyal 72f9161b75 Merge "Separating out configs and common manifest entries" into ub-launcher3-calgary 2016-05-24 22:19:10 +00:00
Sunny Goyal d83a67a6b4 Separating out configs and common manifest entries
This separation allows for easier modification of Launcher3
by derivative projects

Change-Id: Ib3469e9b5d2707daef572050698d792316534d45
2016-05-24 14:11:24 -07:00
Sunny Goyal fec5fc1964 Merge "Removing some usused resources" into ub-launcher3-calgary 2016-05-24 02:37:17 +00:00
Sunny Goyal ded0fdba52 Removing logic for workspace migration from Launcher2
Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3
2016-05-23 16:00:09 -07:00
Bill Yi 33c2ed341e Import translations. DO NOT MERGE
Change-Id: I398e3304ae15e66577c39b53896d46d602a91965
Auto-generated-cl: translation import
2016-05-23 03:15:58 -07:00