Commit Graph

78507 Commits

Author SHA1 Message Date
Bill Yi 6da272816e Import translations. DO NOT MERGE
Change-Id: I90e9961d90f475836e1b0344c9aefc9d17a7b40f
Auto-generated-cl: translation import
2017-02-27 19:28:29 -08:00
Bill Yi 1cb518db18 Import translations. DO NOT MERGE
Change-Id: I81729ad91123d3dc3c365d09f2c7027f62411755
Auto-generated-cl: translation import
2017-02-27 19:27:58 -08:00
Jon Miranda bd02617f94 Update Launcher3 AndroidManifest.xml to match NexusLauncher.
am: 11f1e4cd96

Change-Id: I55760cfea64c7355c264f3779cf37cbf78ace0a6
2017-02-27 22:47:09 +00:00
Jon Miranda 11f1e4cd96 Update Launcher3 AndroidManifest.xml to match NexusLauncher.
Add stateUnchanged flag to activity windowSoftInputMode.
* Original Change-Id: Iad029d1ce327527ae3933c9eca86474be6ba5aa1

Set resizeableActivity to true to enable multi-window for Launcher.
* Original Change-Id: I2d17c89db2eb8d60b3393c2abc3b026e5574085d

Change-Id: I534f6511e7fd7778cc4469f56527d6452ccbc9a9
2017-02-27 14:32:39 -08:00
Sunny Goyal 269a88abab Fix crash when the progress of an installing app decreases
am: 879037d86a

Change-Id: I247f46fbb0fbb1c3b1b86d0171fc2fcf55dda215
2017-02-27 18:16:54 +00:00
Sunny Goyal a535ae423b Moving Event dispatcher definition from LAuncher to BaseActivity so that
it can be used in other activities as well.

Bug: 34766840
Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
2017-02-27 10:09:09 -08:00
Sunny Goyal 879037d86a Fix crash when the progress of an installing app decreases
Bug: 35793892
Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84
2017-02-27 09:41:33 -08:00
Jon Miranda a68a719eb4 Enable suggestions for Folder names.
am: 54d4e645b3

Change-Id: I81b94e1437e47985e61da4245dc6c40c682796af
2017-02-25 00:54:04 +00:00
Jon Miranda 54d4e645b3 Enable suggestions for Folder names.
We turn on suggestions, turn off auto complete, and disable the
default behavior where red lines appear under typos.

Bug: 30055146
Change-Id: Ia151b7a4db1dfc6908504e6ea82a1f6989f05ca5
2017-02-24 15:51:09 -08:00
Tony Wickham cffb862c93 Update notification view to match newer specs
am: 7f3526a1a4

Change-Id: Icfd4edbd71808d00cdcc1885259ca540676fbfdc
2017-02-24 20:59:47 +00:00
Tony Wickham 7f3526a1a4 Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
  left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height

Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
2017-02-24 12:09:06 -08:00
Jon Miranda 2e61fba625 Log when users exit Overview mode by tapping on the Workspace.
Bug: 31779207
Change-Id: Ia57e27d392831686c5837b33a243b72c1418782a
2017-02-24 09:12:59 -08:00
Sunny Goyal 45fe904807 Using transaction when dropping tables, so that the DB never enters an inconsistant state
am: e05b08f705

Change-Id: I31d730782d64eb7e174efe27850eaf2428b11d4c
2017-02-24 17:03:30 +00:00
Sunny Goyal e05b08f705 Using transaction when dropping tables, so that the DB never enters
an inconsistant state

Bug: 34720697
Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11
2017-02-23 18:30:56 -08:00
Sunny Goyal 99e56c64aa Merge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3-dorval
am: ea53ca3a17

Change-Id: Id326b16aabafa1be2e93f562df3e32008310af9e
2017-02-24 00:41:32 +00:00
TreeHugger Robot ea53ca3a17 Merge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3-dorval 2017-02-24 00:37:30 +00:00
Tony Wickham 11c1e11829 Merge "Remove first icon from notification footer after it animates." into ub-launcher3-dorval
am: 1cabfa1d01

Change-Id: I5b11c85440bc6261be4f802abaf0adedca726bd1
2017-02-24 00:30:02 +00:00
TreeHugger Robot 1cabfa1d01 Merge "Remove first icon from notification footer after it animates." into ub-launcher3-dorval 2017-02-24 00:27:19 +00:00
Sunny Goyal 2a76e3fbc6 Removing custom state definition from FastBitmapDrawable
> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable

Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4
2017-02-23 16:15:25 -08:00
Jon Miranda 1bba868612 Ignore tasks if the LauncherModel is still pending.
am: f28629a47b

Change-Id: I528620c0e662ac35004c3929b002c6c5c1823cc0
2017-02-23 23:28:57 +00:00
Jon Miranda f28629a47b Ignore tasks if the LauncherModel is still pending.
The tasks will be enqueued after the model is loaded when it
gets to the final state.

Bug: 31509386
Change-Id: Id72aaedb025a91a49b25e1ef103cc1976d603b21
2017-02-23 15:12:42 -08:00
Sunny Goyal 0ced17017d Merge "Adding some tests for request pin shortcut/widget flow" into ub-launcher3-dorval
am: f55ad3d411

Change-Id: Ie43fae1018fa2ce0c6d48b9f820f0c565a0b17a8
2017-02-23 00:37:46 +00:00
Sunny Goyal 5ec3a0c603 Simplifying Model data load state management
am: dd96a5e4fd

Change-Id: Ic025e859abf3c9ee4a9be9fc0970a3b42a6a0deb
2017-02-23 00:37:36 +00:00
TreeHugger Robot f55ad3d411 Merge "Adding some tests for request pin shortcut/widget flow" into ub-launcher3-dorval 2017-02-22 23:53:26 +00:00
Sunny Goyal d9843357d0 Adding some tests for request pin shortcut/widget flow
Bug: 33584624
Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9
2017-02-22 15:46:40 -08:00
Sunny Goyal dd96a5e4fd Simplifying Model data load state management
Instead of maintaining 3 different states, each tied to a subset of data,
maintaing a single state that represents all the data. Individual subset
data is invalidated in rare cases and these invalidates are tightly tied
to the UI. This also allows us to add new data to the model, without worring
about classifying the data into a subset.

Bug: 34112546
Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
2017-02-22 15:45:14 -08:00
Tony Wickham 6d66c1cfeb Remove first icon from notification footer after it animates.
Before, we had a hack where the notifation view would tell the
footer to trim its notifications, which is inefficient and ugly
since we already know exactly what notification to remove. So
now we move the relevant removal logic (keeping things like the
overflow text in sync) to a removeViewFromIconRow() that is
used after the icon animates as well as when trimming notifications.

Bug: 32410600
Change-Id: I19e54e0c28daea869b45649c7f5c74843412bb86
2017-02-22 15:33:35 -08:00
TreeHugger Robot 9f0fa84439 Merge "Close Folder when an item is auto added to it." into ub-launcher3-master 2017-02-22 19:46:10 +00:00
Bill Rassieur 9ef673fb92 Empty commit to trigger a build.
am: 8dfc049598

Change-Id: Ic3dae2d96ac6dac123392c4d232e1362f3206a32
2017-02-22 19:28:46 +00:00
Bill Rassieur 8dfc049598 Empty commit to trigger a build.
BUG: 35639108
2017-02-22 11:23:19 -08:00
Jon Miranda 440609453f Close Folder when an item is auto added to it.
This can happen when items (as part of a Work Profile) are auto added
to the Work profile Folder.

Bug: 35628160
Change-Id: I29d3b277b0e9cd4bb238fb5aff9a52c6b9e764f8
2017-02-22 10:55:52 -08:00
Bill Yi 25867b8c92 Import translations. DO NOT MERGE
Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import
2017-02-22 07:53:34 -08:00
Sunny Goyal e3db7a87e9 Merge "Fixing accessibility description for all-apps grid adapter. Only counting app icons towards various collection related info" into ub-launcher3-master 2017-02-22 01:18:17 +00:00
Sunny Goyal 4497361984 Fixing accessibility description for all-apps grid adapter.
Only counting app icons towards various collection related info

Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b
2017-02-21 16:45:48 -08:00
Jon Miranda 6dc7f1e000 Close all open views when binding the Launcher.
This fixes a bug where a work profile remains opened even
after the work profile is removed from the device. This can
occur when the work profile is removed with the Folder still opened.

Bug: 35627777
Change-Id: I8d5b4bd9931cad2316b6b8786501d6b3780b7aca
2017-02-21 12:37:51 -08:00
TreeHugger Robot 232f6a3884 Merge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-master 2017-02-21 20:33:33 +00:00
Charles He 3ff9047221 Launcher3: fix app shortcuts for suspended apps
This CL fixes app shortcuts for suspended packages.

1) When DO/PO suspends an app, its pinned shortcuts are instantly grayed
out, but this is not persisted after the launcher restarts (e.g. device
reboot). We now enforce the launcher to check the suspended state when
loading the workspace, and gray out pinned shortcut icons accordingly.

2) When DO/PO suspends an app, its app shortcut popup is still
available. We now temporarily disable the popup when the app is
suspended, and persist the state across restarts.

Bug: 32365540
Test: manual, by following the steps in the bug above
Test: manual, by restarting the launcher package
Change-Id: I983d7c17fa198beca23b66459b50bd67b447bdd2
2017-02-21 20:23:50 +00:00
Jon Miranda 48dfd26195 Fix folder icon animation where it animates downwards on 1st run.
The first time FolderIcon#growAndFadeOut is called, the folder
icon pivot x/y is not set. By moving the call after centerAboutIcon
(which sets the pivot point), we get the expected result of the
animation growing upward.

Bug: 35126799
Change-Id: I22fccb6b23550f823eb7b4485b9584022b810323
2017-02-21 09:07:00 -08:00
Tony Wickham 872943ed69 Merge "Remove badges when launcher loses notification access" into ub-launcher3-master 2017-02-21 16:45:04 +00:00
Tony be3c7d0c56 Remove badges when launcher loses notification access
- NotificationListener.getInstance() has been changed to
  getInstanceIfConnected() (same behavior as before).
- When starting launcher, we send a full refresh of badges
  regardless of whether the NotificationListner is connected.
  If it is not connected, we pass an empty list for the
  active notifications, so that all pre-existing badges are
  removed.

Bug: 35221052
Change-Id: If920317f10814c010e02b5a30ce86a58ac7bc61c
2017-02-21 08:44:28 -08:00
Sunny Goyal 80f4c9d830 Enabling translation for string relates to Add to homescreen confirmation prompt
Bug: 34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e
2017-02-17 12:11:24 -08:00
Sunny Goyal 9b29ca5add Defining HomeScreenElementTheme for elements which appear on top of
wallpaper

> Using HomeScreenElementTheme for workspace items
> Fixing view inflation where wrong layout inflater was being used

Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
2017-02-17 11:37:30 -08:00
Sunny Goyal 519fbdb2b3 Merge "Simplifying some launcher themes" into ub-launcher3-master 2017-02-17 17:53:58 +00:00
TreeHugger Robot dd88dd16c5 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2017-02-17 07:43:38 +00:00
Bill Yi 3cfa7d919f Import translations. DO NOT MERGE
am: e5c99a2140  -s ours

Change-Id: Ifffdd23bc65534039a330bf77ceffaba418982ba
2017-02-17 07:40:20 +00:00
Bill Yi 953f9f90c5 Import translations. DO NOT MERGE
Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import
2017-02-16 23:31:06 -08:00
Bill Yi e5c99a2140 Import translations. DO NOT MERGE
Change-Id: If87152e5d565c37127110756f1185f82833ec685
Auto-generated-cl: translation import
2017-02-16 23:30:20 -08:00
Adam Cohen 09f5a96a71 Merge "Add notification listener back to the manifest" into ub-launcher3-master 2017-02-17 00:50:57 +00:00
Tony 4d8019abf4 Add notification listener back to the manifest
This reverts commit d27b65d4d0.

Also added boolean to values/ and values-v25/ and values-v26/
to enabled/disable the listener by API version.

Bug: 35443111
Bug: 33553066
Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8
2017-02-16 16:38:54 -08:00
Sunny Goyal 1f3f07d47c Simplifying some launcher themes
> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f
2017-02-16 15:24:37 -08:00