Commit Graph

11585 Commits

Author SHA1 Message Date
Sunny Goyal 804420b2fd Merge "Removing Key-Value pair backup logic as Launcher now uses full-data backup" into ub-launcher3-calgary 2016-07-09 21:48:08 +00:00
Sunny Goyal ab7a50ea1a Merge "Updating the allow rotation settings text" into ub-launcher3-calgary 2016-07-08 21:03:32 +00:00
Peter Schiller 723657c584 Merge "Updating alignment of search input" into ub-launcher3-calgary 2016-07-08 20:54:34 +00:00
Sunny Goyal 4dceebe0cf Updating the allow rotation settings text
Bug: 28704055
Change-Id: I7d4780f0d90b9c98b6c5126417538cf1b014c65b
2016-07-08 13:41:37 -07:00
Peter Schiller 31be842887 Merge "Simplified search focus logic" into ub-launcher3-calgary 2016-07-08 17:21:54 +00:00
Peter Schiller dcb8259286 Simplified search focus logic
Change-Id: I3f47e73c4a3d34f10e947fda2c7cae09211cc26d
2016-07-08 10:15:51 -07:00
Peter Schiller 243ad3dbf8 Updating alignment of search input
Bug: 30017936
Change-Id: I2f68711762872bc100b41b2b4768d33e2c0cd902
2016-07-07 18:52:51 -07:00
Hyunyoung Song 2359a68017 Do not remove onLayoutChangeListener on hotseat inside AllAppsTransitionController
Change-Id: I883660906b5bf59035f0382e6a448c6992a58a0c
2016-07-07 16:11:16 -07:00
Sunny Goyal e49a97aba0 Changing isExternalDragWidget to isDragWidget as workspace goes to
modal state even when dragging from workspace

Bug: 29900481
Change-Id: I60ce6073b1c06ed19c75a341f9b73f6a147be889
2016-07-07 15:28:07 -07:00
Sunny Goyal b20cbb25df Updating gradle SDK version
Change-Id: Ib65ed223e998fddd59f2284ed1ab64c794fff096
2016-07-07 15:01:50 -07:00
Sunny Goyal 2ee27b12e9 Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary 2016-07-07 16:50:26 +00:00
Sunny Goyal 27731e4d7d Merge "Fixing accessibility drag and drop Since the page's accessibility flag is updated when entering drag mode, it does not need to be updated on state change" into ub-launcher3-calgary 2016-07-07 07:34:38 +00:00
Hyunyoung Song 968eeebadc Merge "Set the all apps nav bar to black. b/29998559" into ub-launcher3-calgary 2016-07-06 23:22:36 +00:00
Hyunyoung Song e28bd7ca86 Set the all apps nav bar to black.
b/29998559

Change-Id: Iba66b390f78fdf25b7eaf912012aabaf7df56476
2016-07-06 22:54:33 +00:00
Hyunyoung Song 230b2b7f44 Second workspace page icons should not show up when all apps is shown in landscape.
b/29931405

> Also some method names to setTranslation -> setTranslationAndAlpha to
match its implementation.

Change-Id: Icb6ec5df8a267a9024803c70a694ea9b76e5e34d
2016-07-06 15:03:59 -07:00
Sunny Goyal d8d19938e4 Fixing accessibility drag and drop
Since the page's accessibility flag is updated when entering
drag mode, it does not need to be updated on state change

Bug: 29581071
Change-Id: I1a876b4e8530601cb9bf25d097ea37780b525610
2016-07-06 11:46:36 -07:00
Bill Yi 8db7d68aac Import translations. DO NOT MERGE
Change-Id: I0dff7ed5910b590b7adb416f2f28240f25a9d73f
Auto-generated-cl: translation import
2016-07-05 17:13:04 -07:00
Hyunyoung Song 7111a26813 Merge "Remove relayouts b/29945805" into ub-launcher3-calgary 2016-07-04 08:53:37 +00:00
Hyunyoung Song 45eb757ea7 Remove relayouts
b/29945805

> Workspace relayout occurs when window flag is set to
change the status bar. This should not cause AllAppsTransitionController
to be initialized.
> Setting/Unsetting background drawables on the hotseat
also causes unnecessary layout. Fix this issue.

Change-Id: I73a3bfd3eb4bc34cf6760ffbd9826e3fef867056
2016-07-01 18:04:07 -07:00
Adam Cohen d1e0cec518 Avoid unnecessary layout passes from insets callbacks if they haven't changed
Change-Id: Ia7560bd466ff47103811a1a1795af5a5a25abb59
2016-07-01 16:55:52 -07:00
Tony Wickham c9e71b8876 Merge "Use reflection to call LauncherApps.startShortcut()." into ub-launcher3-calgary 2016-07-01 22:03:12 +00:00
Tony Wickham f25cea452f Use reflection to call LauncherApps.startShortcut().
This is necessary because it now returns void instead of boolean, but
we don't yet have the latest SDK with this change to compile against.

Change-Id: Ie4ca718bbe828fd9addfaf003a74b35d32410891
2016-07-01 13:03:37 -07:00
Andrew Sapperstein b900f1cbaf Merge "Delete all* references to launcher clings." into ub-launcher3-calgary 2016-07-01 18:03:09 +00:00
Andrew Sapperstein 932eb8313c Delete all* references to launcher clings.
Launcher clings are dead. Delete all the code and resources associated with
them.

* Did not delete the actual code the marks the cling as dismissed since it's
used in db upgrade and backup/restore paths. Figured we probably want to keep
that.

Change-Id: I28841b4a430187b62b239afeb64bee81a798e259
Fixes: 29461092
2016-07-01 10:23:20 -07:00
Andrew Sapperstein 8a4bb33472 Merge "Stop showing first run launcher cling." into ub-launcher3-calgary 2016-07-01 03:12:12 +00:00
Andrew Sapperstein 3da982fbab Merge "Use colorSecondary for darker bg color." into ub-launcher3-calgary 2016-07-01 03:11:20 +00:00
Hyunyoung Song 5a2af756ea Merge "Get rid of CATCH state in verticalpulldetector" into ub-launcher3-calgary 2016-07-01 01:33:51 +00:00
Peter Schiller 310a988993 Updating all apps to match spec
Change-Id: Ie351fdea2e3b05ca911e6533f0c5d00c17e0847c
2016-06-30 18:09:51 -07:00
Andrew Sapperstein 8b9cb08b02 Stop showing first run launcher cling.
Followup CL will delete the dead code.

Bug: 29461092
Change-Id: Iaf96184219b7b052b7a8d97f403afec236d28437
2016-06-30 17:39:38 -07:00
Hyunyoung Song 21b7571b69 Get rid of CATCH state in verticalpulldetector
> There was a bug regarding mLastDisplacement not being cleared out, which
caused a jump of the all apps container.
> Also as a cleanup, got rid of the CATCH state.

Change-Id: Iae9af0be04cce15f2ba4e6734d1615f879921e5d
2016-06-30 17:38:58 -07:00
Hyunyoung Song b1e9e8d662 Merge "Fix hotseat flicker b/29648104" into ub-launcher3-calgary 2016-07-01 00:32:38 +00:00
Tony Wickham 2aa31b8fcc Merge "Fix some issues with shortcut containers opened inside folders." into ub-launcher3-calgary 2016-06-30 23:35:03 +00:00
Tony Wickham 2f2104ccdf Fix some issues with shortcut containers opened inside folders.
- Dragging a shortcut from a container inside a folder was buggy
  because the folder assumes that all drags are removing an item
  (so it marks the cell as unoccupied, etc.). So we just close
  the folder when dragging a shortcut.
- When the shortcuts container opened outside of a folder, touches
  on it were incercepted by DragLayer to close the folder. So we
  move the container intercept check first, and return false if the
  touch is over the container so it can handle the touch.

Change-Id: I8c5814513e99910b2930e05d9a62dfe0a0a60f3e
2016-06-30 16:34:20 -07:00
Hyunyoung Song a97c64bf9f Fix hotseat flicker
b/29648104

Change-Id: I74eea09ab5c4d03c0df3b4a82c7636299edf4d32
2016-06-30 15:30:53 -07:00
Andrew Sapperstein 5f7750d75c Use colorSecondary for darker bg color.
Used for widget headers and a few other places.

In order to support pre-API 25, an app-local version of colorSecondary
is created and used throughout the app. A new WidgetContainerTheme
sets colorSecondary to a canned value. On API 25+, colorSecondary
is set to the platform value.

Change-Id: Ie0dd66333052b7346eea5d82d1c88417c6a2cd00
Fixes: 28625102
2016-06-30 14:17:19 -07:00
Tony Wickham 80f5787b1c Call bindDeepShortcuts() from runBindSynchronousPage().
Otherwise Launcher's copy of the deep shortcut map is cleared when Launcher
is re-created, such as on rotation, so the UI won't show shortcuts.

Change-Id: I3bb6a904762dc4661cc2b5da28485e4bf778c9e7
2016-06-30 14:14:48 -07:00
Hyunyoung Song 5215b545b9 Code cleanup/ Move OnLayoutChangedListener to class level.
Change-Id: Ifd3c7b86f61648407c8c93da9ec6d038aa996c0a
2016-06-29 21:25:33 -07:00
TreeHugger Robot 798f95552b Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-06-30 03:12:19 +00:00
Bill Yi 9deafc4750 Import translations. DO NOT MERGE
Change-Id: I3c1ec437db67beb06a1106d595e11c854863a771
Auto-generated-cl: translation import
2016-06-29 19:38:12 -07:00
Tony Wickham 1bce7fd342 Long-press on an app to reveal its shortcuts.
- Add ShortcutsContainerListener to icons on workspace, folders, and
  all apps. This handles long-press and forwards following touches to
  the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
  which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
  right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.

Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
2016-06-29 17:48:46 -07:00
Hyunyoung Song 3ccedd234a Merge "Make very first pull up should always work" into ub-launcher3-calgary 2016-06-30 00:41:36 +00:00
Hyunyoung Song 83fb07bb6c Make very first pull up should always work
> Also delete unnecessary code.
> Fix a bug where the container doesn't snap to the top and bottom.

Change-Id: If820e9fae03d060e53ac028f8e8d827c90b354fc
2016-06-29 16:40:06 -07:00
Hyunyoung Song dff510c0a5 Merge "Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call" into ub-launcher3-calgary 2016-06-29 21:34:16 +00:00
Hyunyoung Song b047e36f2c Remove SYSTEM_UI_FLAG_LIGHT_NAV_BAR flag bit from systemUiVisibility call
Change-Id: Idf360a3580eff2ef873e7e0c20eb5ee2355d9be7
2016-06-29 14:03:20 -07:00
Peter Schiller f9507122ec Setting unused shadow to null
Change-Id: I1122cd9b6b01c18b2393ad6eb2dbc50b0460f78b
2016-06-29 13:23:24 -07:00
Peter Schiller 5a24858bb2 Merge "Adding shadow to fast scroll indicator" into ub-launcher3-calgary 2016-06-29 20:09:54 +00:00
Peter Schiller 1d62b8a7fc Adding shadow to fast scroll indicator
Bug: 29761848
Change-Id: I9db7e73fb6b8c703be21a6c3f9e2a50253a48ec7
2016-06-29 12:07:55 -07:00
Sunny Goyal 138b23bd71 Merge "Fixing alpha of workspace components being changed at too many places" into ub-launcher3-calgary 2016-06-29 01:20:00 +00:00
Hyunyoung Song 26def23702 Merge "All apps icons should become clickable" into ub-launcher3-calgary 2016-06-28 23:50:26 +00:00
Hyunyoung Song 67def6cef1 All apps icons should become clickable
b/29761088
b/29610290

> Workspace transition state was not being properly set which
caused onClick to not allow apps to launch. Temporary solution:
do not call the onLauncherTransitionPrepare inside
AllAppsTransitionController.

> Fixing another important bug which doesn't properly set workspace
state to correct alpha value because hotseat background drawable
is null when home is triggered from settings app after wallpaper is
changed. The color extractor has not figured out how hotseat drawable
color should be set to immediately after wallpaper change.

Change-Id: I9f797dbda6c73c71816e5070ed4da37099b26a6d
2016-06-28 16:38:18 -07:00