Commit Graph

2126 Commits

Author SHA1 Message Date
Sunny Goyal
b7c2e99ffb Merge "Updating the app search buton text" into ub-launcher3-calgary 2016-06-08 22:35:32 +00:00
Sunny Goyal
3333b0ced8 Unifying focus indicator handling for workspace and all-apps
Adding an abstract FocusIndicatorHelper based on FocusIndicatorView
which draws the background instead of using a dummy view.

Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab
2016-06-08 15:00:09 -07: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
Sunny Goyal
8653f1d748 Updating the app search buton text
Bug: 28774501
Change-Id: I268a2d98f70d160c91ebd8fc796f3626ae67c159
2016-06-07 10:31:49 -07: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
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
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
Bill Yi
074290b873 Import translations. DO NOT MERGE
Change-Id: I98b86e3d83370b4548154c5b290faffa1f05ca5c
Auto-generated-cl: translation import
2016-06-01 07:21:12 -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
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
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
b765b182a4 Merge "Removing logic for workspace migration from Launcher2" into ub-launcher3-calgary 2016-05-25 19:26:18 +00: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
Sunny Goyal
9600d20110 Adding a loading view for widgets list
Bug: 28427096
Change-Id: Icdc5ceed0caa1fafc97452142e4b71aa3026ddf9
2016-05-19 09:17:09 -07:00
Sunny Goyal
6a4e02642a Removing some usused resources
Change-Id: Ib11db872270931f956ba7093e472c866a1b0e794
2016-05-18 19:57:00 -07:00
Sunny Goyal
c64cfdd8fa Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4
2016-05-18 17:50:34 -07:00
Baligh Uddin
a40102f5d5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-05-18 19:06:21 +00:00
Tony Wickham
f549dab31d Add PageIndicator interface and custom PageIndicatorLine view.
- The current PageIndicator has been renamed to PageIndicatorDots
  and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
  draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
2016-05-17 18:53:57 -07: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
cc60ed63a7 Import translations. DO NOT MERGE
Change-Id: I6ed48cc0d1df572fa6aa007722fd1bb4246cd6c5
Auto-generated-cl: translation import
2016-05-17 00:22:02 -07: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
Sunny Goyal
c190dbfb78 Adding full backup handler for launcher3
Bug: 28302573

Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004
2016-05-10 15:27:24 -07:00
Baligh Uddin
e2cd10d4a3 Import translations. DO NOT MERGE
Change-Id: Idf845844d4c1319981ffb13b279be6ea307d4543
Auto-generated-cl: translation import
2016-05-02 13:22:51 -07:00
Bill Yi
0a0039dfa3 Import translations. DO NOT MERGE
Change-Id: I2bc7d79eaae8261dfe5397f4e5eadfdaf71e9a1c
Auto-generated-cl: translation import
2016-04-26 19:31:26 -07:00
Bill Yi
02c8b3d3f5 Import translations. DO NOT MERGE
Change-Id: I3868028d1eede381601fe3565c554dbb82259ca9
Auto-generated-cl: translation import
2016-04-25 07:28:34 -07:00
Sunny Goyal
1ed6c4adde Showing a toast when changing wallaper is disabled
Bug: 27940102
Change-Id: I373093d9b85dca356aaa8798931d5315981fd74c
(cherry picked from commit 2afb636180)
2016-04-21 23:12:50 +00:00
Baligh Uddin
fdec0f9205 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-04-19 15:56:39 +00:00
Baligh Uddin
2e8ec7e3ef Import translations. DO NOT MERGE
Change-Id: If9c08424dedf67ada131561400790a3aec22cfb2
Auto-generated-cl: translation import
2016-04-19 02:03:51 -07:00
Sunny Goyal
46ab2276f9 Removing Launcher broadcast support from Launcher3
Change-Id: Ibaf5fe1465d3858b060fc2958194cf60f22a11db
2016-04-15 13:02:04 -07:00
Sunny Goyal
53b7ce18f4 Removing first launcher broadcast
Change-Id: I225205a219cf2e0f27bb3c78cbdad1a3429d466f
2016-04-14 11:25:56 -07:00
Hyunyoung Song
ddec1c739e Refactor UserEventLogging, Add predictedRank, replace Bundle with Proto
b/26494415
- Removed bundle object that became redundant now that we have LauncherEvent proto
- Combined Stats and UserEventLogger as they are effectively doing same thing
- Removed parent field inside Target
- added predictedRank target inside Target

b/27967359
- make com.android.launcher3.action.LAUNCH broadcast explicit
Later CL: finish packageName/intent/componentHash/predictedRank fields

Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
2016-04-13 10:58:33 -07:00
Sunny Goyal
b9f3d025d8 Deleting resources added due to merge conflicts
Change-Id: I26e46e0470c6b2a33a633b69a5f636b30a61dbc7
2016-04-06 12:29:33 -07:00
Sunny Goyal
13178ac822 Adding an upper bound to all-apps width on larger devices
Change-Id: I16a0d8fb7c5023045d0a6b9e8089e0ab6a476d6d
2016-04-04 16:35:47 -07:00
Tony Wickham
1c1c088994 Fix spring-loaded highlight on JB.
It was setting the panel to black when highlighting a CellLayout,
instead of just adding a white border.

Bug: 27135377
Change-Id: I879b12613b0cbfdda2a980065c66ea3ceb960f33
2016-03-31 15:09:15 -07:00
Sunny Goyal
7efe651226 Fixing black search bar background in search bar
Bug: 27919354
Change-Id: I3f43d8f39640c2db4b192ea316aebf11189982e3
2016-03-30 09:19:45 -07:00
Adam Cohen
bd238c9e1b Yet another RecyclerView child that needs match_parent
issue 27705077

Change-Id: I16bdefe37351c26897a57d314a58718cb837543d
2016-03-29 15:07:44 -07:00
Tony Wickham
855b1b5fff Add distance threshold for dragged items before accepted by targets.
With the new spring-loaded workspace, items are often very close to
button drop targets (e.g. App Info) at the start of a drag. This
threshold makes it less likely to accidentally drop on a target.

Bug: 24099531
Change-Id: I4912ceeb0b63958816177c7bde073e825176d987
2016-03-29 12:41:14 -07:00
Adam Cohen
1ad3ef3e81 Fix alignment issue with suggested apps in all apps
-> New RecyclerView handles wrap_content differently
-> Add mock set of suggested apps to the LauncherExtension

issue: 27581978
Change-Id: Id080e212e0425515fa66e821d116b95284bb3526
2016-03-28 15:51:25 -07:00
Annie Chin
d2877b9bdb Merge "Introduce IconProvider." into ub-launcher3-calgary 2016-03-28 21:26:46 +00:00
Annie Chin
17f85951a5 Introduce IconProvider.
Bug: 27506625

-Move managing of SystemState to IconProvider

Change-Id: I3417f0b7d0664c2255c7cc2a88f6c65822b5fb98
2016-03-28 14:07:22 -07:00
Sunny Goyal
f37a21412a Defining separate layouts for horizontal and vertical drop target bars
instead of chaning the layouts in DeviceProfile

Bug: 27721989
Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
2016-03-24 17:29:23 -07:00
Sunny Goyal
05c8c57fa7 Removing dependency on LauncherCallbacks for getting the search bounds
> Instead of handling insets in BaseContainerView, directly applying
  them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
  handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
2016-03-17 11:57:39 -07:00
Tony Wickham
95cdb3a021 Remove scrim on highlighted spring-loaded panel.
Bug: 27135377
Change-Id: I470955ed082a45ae7dc5f8fdd1f3decb2b573dbc
2016-03-16 11:09:09 -07:00
Adam Cohen
35937a2530 Fix issue with all apps icons not being aligned
-> The new versions of LayoutManagers in the latest support lib
   has begun to respect certain layout params (where before they
   were ignoreed). match_parent is now treated as "match column",
   which is what we want here.

issue 27581978

Change-Id: If1efed15b5a93c873ff141e3c658922819c143fb
2016-03-14 19:50:05 -07:00
Adam Cohen
efca0279eb Switch all folder preview rendering to be programmatic (ie. no assets)
-> Refactored the preview background rendering to be much more self-contained.
   This cleans up a lot of code in the CellLayout, and keeps the logic in the
   right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
   and the CellLayout. Unfortunately, CellLayout rendering is still required
   to work around clipping issues (due to use of software layer). We also
   need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
2016-03-03 09:24:45 -08:00
Geoff Mendal
39f12e9b08 Import translations. DO NOT MERGE
Change-Id: I71aa07c1d967ec80f35cf30a15bbd8306a3c9ba8
Auto-generated-cl: translation import
2016-02-29 05:25:50 -08:00