Commit Graph

7697 Commits

Author SHA1 Message Date
Jorim Jaggi
eedb00a674 Fix NPE in Workspace.onDropCompleted
Bug: 11627757
Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
2014-01-14 13:02:43 -08:00
Adam Cohen
8b5b05b7f3 Merge "New launcher2 icon migration algorithm." into jb-ub-now-kermit 2014-01-10 21:42:39 +00:00
Dan Sandler
d502404a44 New launcher2 icon migration algorithm.
The user will be able to request "icon migration", which is
not a direct mapping of the old workspace, but rather
follows this heuristic for bringing the user's favorite
icons (by dint of their existence on the workspace) into
Launcher3:

Workspace shortcuts are placed in lexicographic order on the workspace
starting at screen 0 (leaving the bottom row of screen 0 empty to make
sure there's room to move things around). Folders are preserved and
their contents sorted. Duplicate icons (that is, shortcuts
with the same intent, pursuant to some cleanups) are removed.

Hotseat icons are migrated in their original place, unless their new
location is not accommodated by the hotseat (i.e. the L3 hotseat is
too small on this device), in which case they're treated like any
other shortcut and tossed into the workspace.

To test, turn on Launcher.ENABLE_DEBUG_INTENTS and then:

$ adb shell am broadcast -a com.android.launcher3.action.DELETE_DATABASE
$ adb shell am broadcast -a com.android.launcher3.action.MIGRATE_DATABASE

Bug: 12416411
Change-Id: Ia5c56f36c11455867ea20a39f70210f595020a87
2014-01-10 15:49:51 -05:00
Nilesh Agrawal
24fa33f8c7 Merge "Allow DISABLE_ALL_APPS to be set using a system property." into jb-ub-now-kermit 2014-01-10 19:49:21 +00:00
Nilesh Agrawal
16f3ea870a Allow DISABLE_ALL_APPS to be set using a system property.
- Moving the property to LauncherAppState
 - The property is only read on dogfood builds.

The property can be set using setprop or /data/local.prop

Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
2014-01-09 17:21:09 -08:00
Adam Cohen
b54a5989a2 Adding optional first run activity to Launcher
Change-Id: I146927d8a065f1cf5ef5cec41c8fb4f9ad09d25c
2014-01-09 14:08:49 -08:00
Adam Cohen
0259c629cb Merge "Fix issue where deleting item from folder leaves extra page" into jb-ub-now-kermit 2014-01-09 19:14:52 +00:00
Chris Wren
8661761cb6 better support for multiple files
don't exit on error, just log.
new verbose flag to print more information

Change-Id: I5c4895a837cb8a31901aabceade3ab976abf4af0
2014-01-09 13:35:40 -05:00
Chris Wren
33f4c2df28 first backup should save things from the beginning of time
Bug: 12455866
Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5
2014-01-09 13:02:20 -05:00
Yura
0bae5b220a Merge "Moved paddingStart to -v17 folder." into jb-ub-now-kermit 2014-01-09 14:45:57 +00:00
Yura
f0efa2fb4f Moved paddingStart to -v17 folder.
This is to help get us paddingStart free to be able to work on Samsung
tablets, as they crash on paddingStart when it is used outside of -v17.

Bug: 8166178
Change-Id: I84879257c4e463879fd6bfc322514d30c469ca30
2014-01-09 10:55:40 +00:00
Winson Chung
872e70e0b6 Merge "Accounting for new Package event extras when updating forward-locked apps. (Bug 11855584)" into jb-ub-now-kermit 2014-01-08 22:05:47 +00:00
Winson Chung
3ee4a474f2 Accounting for new Package event extras when updating forward-locked apps. (Bug 11855584)
Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
2014-01-08 14:05:08 -08:00
Dan Sandler
155f3bc69b Merge "KEYCODE_MENU: hide all apps when entering overview mode" into jb-ub-now-kermit 2014-01-08 21:02:51 +00:00
Mihail Dumitrescu
29e619c854 Merge "Remove a non-obvious fall through in a switch statement." into jb-ub-now-kermit 2014-01-07 19:39:17 +00:00
Dan Sandler
14c6a3f510 KEYCODE_MENU: hide all apps when entering overview mode
Bug: 12165618
Change-Id: I7ee652012c7f7b8e6fab3d9d1f99cf22484f3182
2014-01-07 14:13:08 -05:00
Mihail Dumitrescu
693fbc7f17 Remove a non-obvious fall through in a switch statement.
This CL does not modify the result of calling onInterceptHoverEvent()
assuming isEventOverFolder() has no side effects. The only change is
that isEventOverFolder will now be called once rather than twice when
action == MotionEvent.ACTION_HOVER_ENTER and isOverFolder == true.

Change-Id: Icc28ab880cf5094e49f51d72035891e924cb2031
2014-01-07 18:49:46 +00:00
Yura
83b0da1aed Removed paddingStart and paddingEnd when they are the same.
This is to help get us paddingStart free to be able to work on Samsung
tablets, as they crash on paddingStart when it is used outside of -v17.

Bug: 8166178
Change-Id: Ic0ea256aabb68b654a3942dd19dd30e67f1b2af9
2014-01-07 18:34:03 +00:00
Nilesh Agrawal
579c8433f9 Merge "Allow scrolling folders in when all apps is disabled." into jb-ub-now-kermit 2014-01-03 22:28:44 +00:00
Sandeep Siddhartha
8d36ffe552 Merge "Allow changing search bar hint in the cling on-the-fly" into jb-ub-now-kermit 2014-01-03 20:02:19 +00:00
Nilesh Agrawal
5f7099af85 Allow scrolling folders in when all apps is disabled.
Allows for more items to be added into a folder.
Allows for scrolling by letting the content area inside the scroll view to be taller.
The height of content area was capped in https://googleplex-android-review.git.corp.google.com/#/c/387583/

Change-Id: I8d7950ac9c155e26c5a299c17ae6a2bbf829dce6
2014-01-02 15:55:53 -08:00
Baligh Uddin
72b4c7c3df am 3e6b26da: (-s ours) am cff2d6a2: (-s ours) Import translations. DO NOT MERGE
* commit '3e6b26daba924fb88e20855210e0a96e2ab0ac37':
  Import translations. DO NOT MERGE
2013-12-26 19:53:09 -08:00
Baligh Uddin
3e6b26daba am cff2d6a2: (-s ours) Import translations. DO NOT MERGE
* commit 'cff2d6a2d904b7d88096650021aa428cfdc08632':
  Import translations. DO NOT MERGE
2013-12-26 19:51:01 -08:00
Baligh Uddin
37749ea370 Import translations. DO NOT MERGE
Change-Id: I9ced3c60b831f09e8436f562d8c1fef1e2aa6156
Auto-generated-cl: translation import
2013-12-26 17:20:10 -08:00
Baligh Uddin
cff2d6a2d9 Import translations. DO NOT MERGE
Change-Id: I5cbd143e531cfe8f1d131f0d7c91008758337013
Auto-generated-cl: translation import
2013-12-26 17:19:12 -08:00
Sandeep Siddhartha
d4d3d08741 Allow changing search bar hint in the cling on-the-fly
- This allows GEL to initially supply an empty string if hotword isn't
  active, and later on update the cling if and when the hotword becomes
  active.
- This isn't expensive as it'll only be called if Launcher first calls
  getFirstRunClingSearchBarHint, i.e. once every fresh install/clear
  data

Bug: 11116105
Change-Id: Ia963bb62d7b331afd0c34adfa6c4b6bdbac48349
2013-12-26 15:42:52 -08:00
Chris Wren
5f85bb4977 Merge "support multiple files and fix logcat smippets for launcher_protoutil" into jb-ub-now-kermit 2013-12-18 19:29:14 +00:00
Chris Wren
2fd318246f support multiple files and fix logcat smippets for launcher_protoutil
plus some code cleanup

Change-Id: I09b4a6aedbb1251a65d379464d830da694d38a38
2013-12-18 14:28:35 -05:00
Nilesh Agrawal
20e45a8ef8 Merge "Do not allow duplicate shortcuts when ALL_APPS is disabled." into jb-ub-now-kermit 2013-12-17 23:46:13 +00:00
Nilesh Agrawal
dff0bfeb90 Do not allow duplicate shortcuts when ALL_APPS is disabled.
When DISABLE_ALL_APPS is true, we want to have only one shortcut for each activityexposed via the Application's manifest.
We ignore INSTALL_SHORTCUT broadcasts which have launch intents with ACTION_MAIN and CATEGORY_LAUNCHER.
Applications can still create shortcuts pointing to an already exposed component if they provide data or extras in the intent.

Change-Id: I0b05283ea6c522d197e0262c2997f7298e08740b
2013-12-17 15:26:00 -08:00
Baligh Uddin
3d2fefae6d Merge "Import translations. DO NOT MERGE" into jb-ub-now-kermit 2013-12-17 17:33:22 +00:00
Baligh Uddin
10c29d30f9 Import translations. DO NOT MERGE
Change-Id: I40a264c567f7d0e599182ce68f5b844bd2856f9d
Auto-generated-cl: translation import
2013-12-16 13:16:15 -08:00
Chris Wren
f6a22ada81 Add auto-detection of payload type
update docs and error messages
use png extension of files, since they are
don't create image files by default
use input filename for image files

Change-Id: I3e9c31a1de02976432d3f39cf82b5403055d620a
2013-12-16 13:56:25 -05:00
Adam Cohen
9c58d8269b Fix issue where deleting item from folder leaves extra page
Change-Id: Ie741dbe5341d8237c85f732b26661d084b99f6e2
2013-12-13 17:18:25 -08:00
Adam Cohen
309260ee59 Merge "Don't notifyPageSwitchListener until page settles (issue 12069757)" into jb-ub-now-kermit 2013-12-13 23:59:53 +00:00
Adam Cohen
674531f261 Don't notifyPageSwitchListener until page settles (issue 12069757)
-> Should address the dismiss timer not working quite right

Change-Id: I63ad32d8f7c37f1a090ff1dd6024eeb7c0c6ce65
2013-12-13 15:59:01 -08:00
Michael Jurka
31ff527a4a Update script to pull latest files from Gallery 2013-12-13 16:28:36 +01:00
Michael Jurka
34c2e6cf7a Clean up imports 2013-12-13 16:20:53 +01:00
Michael Jurka
7ad868b86e Create separate project for Wallpaper Picker
Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
2013-12-13 12:50:32 +01:00
Adam Cohen
69a10949d6 Merge "Fix NPE from feedback (issue 12106858)" into jb-ub-now-kermit 2013-12-13 00:24:06 +00:00
Adam Cohen
4de0974c46 Fix NPE from feedback (issue 12106858)
Change-Id: I63f7f73b85d4c1652d1e722f94c51b567a83cc6b
2013-12-12 16:16:55 -08:00
Nilesh Agrawal
306c1cf200 Show widgets when ALL_APPS is disabled.
Change-Id: I367448df69a63ffd3412fe4c99137a21426d285c
2013-12-12 15:00:59 -08:00
Baligh Uddin
33cd5b9e9e Merge "Import translations. DO NOT MERGE" into jb-ub-now-kermit 2013-12-12 15:50:14 +00:00
Michael Jurka
69413c91c5 Move additional wallpaper picker files to special dir
Change-Id: I3dd6f0ce4db72f9f30ed02e8c27039f68ab9a728
2013-12-12 13:14:32 +01:00
Baligh Uddin
bd2243aca1 Import translations. DO NOT MERGE
Change-Id: I82b885284a196a6e466640d7790dc3c977f247a5
Auto-generated-cl: translation import
2013-12-11 21:11:15 -08:00
Adam Cohen
f833fefb50 Merge "Don't load items which exceed the grid bounds" into jb-ub-now-kermit 2013-12-12 01:50:14 +00:00
Adam Cohen
ae4409dea9 Don't load items which exceed the grid bounds
-> Unified location where this is managed (with other placement verification)
-> For now, not deleting out of bounds items, but can turn it on in one line

Change-Id: I5e1a5cd357d80475ae40af7b89a0cd372d5c241b
2013-12-11 17:46:39 -08:00
Winson Chung
b6147f8578 Merge "Adjusting grid for tablets and fixing incorrect resources for large tablets." into jb-ub-now-kermit 2013-12-12 00:35:47 +00:00
Winson Chung
1239b9da89 Merge "Fixing issue with Widget sizes being icorrectly reported." into jb-ub-now-kermit 2013-12-11 23:52:07 +00:00
Winson Chung
dcd27ba909 Fixing issue with Widget sizes being icorrectly reported.
Change-Id: I8474514cc3722d8450c707b7fd1ccea2ea344a59
2013-12-11 15:28:15 -08:00