Commit Graph

521 Commits

Author SHA1 Message Date
Winson Chung 790b7ad28e am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
  Remove handler for searchables changed broadcast.
2015-08-03 22:20:10 +00:00
Winson Chung 88fa741e50 Remove handler for searchables changed broadcast.
Bug: 22515084
2015-08-03 14:25:28 -07:00
Sunny Goyal 5d2fc32e6d Several animation calls cleanup
> Using View property instead of strings to avoid extra reflection step
> Using ViewPropertyAnimator when several properties are being animated

Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
2015-07-31 13:07:14 -07:00
Sunny Goyal 6c56c68555 Changing the dogfood check to a static boolean to better handle proguard optimizations
Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
2015-07-16 14:09:53 -07:00
Hyunyoung Song b4a367459a resolved conflicts for merge of 98ff38aa to ub-launcher3-master
Change-Id: Ie43d7215e604758936c558b79d191f1b26bb31f8
2015-07-13 14:23:39 -07:00
Hyunyoung Song 98ff38aa48 Animation should start and finish on widgets button when opening/closing widget tray.
b/21301759

Change-Id: Ib0b9132d8709426598d95fc9f60d37752e05b711
2015-07-10 17:50:13 -07:00
Sunny Goyal aad90582a1 Handle custom shortcuts only when requestCode is REQUEST_CREATE_SHORTCUT,
otherwise it would conflict with results coming from a different request

Change-Id: I395cc970acef54d289d6c0a37cdfa35fc4dbb9ab
2015-07-11 00:09:28 +00:00
Sunny Goyal 3f99a1440e Merge "Fixing screen jump when going to spring_loaded mode in rtl" into ub-launcher3-master 2015-07-10 23:43:54 +00:00
Winson Chung 19795603fe am 76648c58: Making long-press of AllApps to jump directly to search.
* commit '76648c58d5fe8e5c0695f865243d3f421c53a84d':
  Making long-press of AllApps to jump directly to search.
2015-07-10 23:35:58 +00:00
Winson Chung 76648c58d5 Making long-press of AllApps to jump directly to search.
Bug: 22210146
Change-Id: Iacf28416d6e31233a68e3b41576a8860b4b72b88
2015-07-10 16:08:56 -07:00
Sunny Goyal ce5a7e5ee4 Fixing screen jump when going to spring_loaded mode in rtl
> Removing call to snapToScreen when changing state
> Marking adjacent pages visible in overview and spring_loaded mode, so that they get drawn atleast once.

Change-Id: If305e0d4cfa63bac03f301d69017da55f89155bd
2015-07-09 10:17:46 -07:00
Winson Chung 882a52eacf Fixing minor issue with spatially sorting workspace items for binding.
Change-Id: I10e05b3ae34a8101a48b625899888c7e8de1fe71
2015-07-08 23:45:46 +00:00
Adam Cohen 518a39ba2e am d98fff30: Merge "Adding custom slide up activity transition for L MR1" into ub-launcher3-burnaby
* commit 'd98fff30552e7e8cff1205926001cbac7d7e9a35':
  Adding custom slide up activity transition for L MR1
2015-07-08 02:08:08 +00:00
Adam Cohen d98fff3055 Merge "Adding custom slide up activity transition for L MR1" into ub-launcher3-burnaby 2015-07-08 01:59:57 +00:00
Adam Cohen 947e02b638 Adding custom slide up activity transition for L MR1
issue 21402755

Change-Id: Id2542c0a3c38bd71aa407a3b0fe00fdee24e2f69
2015-07-07 18:52:09 -07:00
Sunny Goyal 3b2e432104 am dd2e6dfc: Updating onRequestPermissionsResult signature to public
* commit 'dd2e6dfc16b7c6ae65123e4df545d42124b76cb0':
  Updating onRequestPermissionsResult signature to public
2015-07-07 18:12:04 +00:00
Sunny Goyal dd2e6dfc16 Updating onRequestPermissionsResult signature to public
Change-Id: Ie08caa55a195e9062006d13e86238cca827ef249
2015-07-07 10:57:57 -07:00
Sunny Goyal 3a56edb0ea Merge "Refactoring ItemInfo" into ub-launcher3-master 2015-07-07 06:06:59 +00:00
Sunny Goyal 8d59509f1a Using an empty error view for QSB
Bug: 21731323
Change-Id: I837b7bf9bac443cd2062ab2d4c24e081eb01732d
2015-07-06 12:22:39 -07:00
Sunny Goyal aa8ef119f1 Refactoring ItemInfo
> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
2015-06-30 10:26:49 -07:00
Dave Hawkey cb5f619770 am 79f25bed: Merge "Add LauncherCallbacks for requesting permissions on MNC" into ub-launcher3-almonte
* commit '79f25bedd2ed13613323b085b46b9b42aee21696':
  Add LauncherCallbacks for requesting permissions on MNC
2015-06-29 17:41:14 +00:00
Sunny Goyal a1d1bf3119 Allowing UserHandle to be passed in the intent when creating AppInfo
> Removing createShortcut with userHandle, as shortcuts can only be
for the primary user.

Bug: 22070517
Change-Id: Ifc58a76d0f1e0ab8f1943b46588cc19dd88bdda1
2015-06-26 13:51:11 -07:00
Dave Hawkey 3a43ed61cb Add LauncherCallbacks for requesting permissions on MNC
Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
2015-06-26 10:27:47 -06:00
Hyunyoung Song 1a8a6e0baa Merge "Announce content desc of workspace immediately after unlocking the lock screen. b/22051420" into ub-launcher3-burnaby 2015-06-26 04:08:14 +00:00
Hyunyoung Song 166e6488e6 Announce content desc of workspace immediately after unlocking the lock screen.
b/22051420

Change-Id: I41ab93782383c04e0074d87632ebe8d884a8e208
2015-06-25 21:06:07 -07:00
Winson Chung ca0f7d7728 Merge "Exposing drag methods with user info." into ub-launcher3-burnaby 2015-06-25 20:19:49 +00:00
Winson Chung 5ffd51db0c Exposing drag methods with user info.
Change-Id: I974b67d23d3d29795c1c1d24e1ecf212b52e3912
2015-06-25 13:14:14 -07:00
Winson Chung 91c0595443 Ensuring that we always update the predicted apps set.
Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec
2015-06-25 19:24:24 +00:00
Winson Chung b1777447d9 Refactoring fast scroller.
- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
2015-06-23 14:24:15 -07:00
Winson Chung d3800208aa Merge "Moving predicted apps callbacks to use ComponentKey." into ub-launcher3-burnaby 2015-06-18 21:10:41 +00:00
Winson Chung 6b1c73f50a Moving predicted apps callbacks to use ComponentKey.
Bug: 21270185

Change-Id: If2d9dd77235e7a96de96a1a5441a589ef8a72a7f
2015-06-18 12:39:24 -07:00
Jun Mukai e9819e6d5d Add null-check for workspace/hotseat.
I assumed that they are non-null, but reportedly it was wrong.
This method can be invoked before the views are fully initialized.
Also hotseat can be null as far as I see setupViews(), therefore
null-check and 'importance stored' flag check should be done
separately.

Bug: 21779078
Change-Id: I3f17226f887c38adf2b1fb7ee2a016e00ffc0eb4
2015-06-17 11:26:54 -07:00
Sunny Goyal 383c507c47 Removing ContentObserver in launcher
> Using callback insted of using a content observer
> Setting the listener in LauncherAppState to prevent resource leak

Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
2015-06-16 10:31:43 -07:00
Winson Chung c332934e27 Merge "Refactoring all apps search to support external search bar." into ub-launcher3-burnaby 2015-06-15 22:43:55 +00:00
Winson Chung ef7f874a88 Refactoring all apps search to support external search bar.
- Adding support for an external search bar that can be used
  to search a container view.  This adds a new interface
  AllAppsSearchController which manages the external search
  bar.  Each controller will have its own search implementation
  which means that we no longer need a common AppSearchManager
  interface.
- Removing elevation controller as we no longer have a builtin
  search bar in all apps
- Refactoring container view insets so that they behave
  the same in all containers.
- Refactoring apps view to ensure that we only update the number
  of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
2015-06-15 14:22:47 -07:00
Rahul Chaturvedi e863fed140 Read rotation setting correctly from the wallpaper picker.
If reading the rotation setting without the multi-process flag, the
WallpaperPickerActivity usually picks up a cached value. Specifying the
multi-process flag during the read fixes this and the wallpaper picker
always has the correct rotation setting.

Change-Id: Ic3639f8cd694674e92c8940b753c6bc30486076d
2015-06-15 14:09:42 -04:00
Sunny Goyal 51cd50d7f1 Merge "Using content provider to update launcher settings" into ub-launcher3-burnaby 2015-06-12 19:36:22 +00:00
Sunny Goyal 7779d62308 Using content provider to update launcher settings
> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences

Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
2015-06-12 11:16:20 -07:00
Sunny Goyal 4547802297 Tying accessibility drag lifecycle to that of dragController
Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65
2015-06-08 19:22:27 -07:00
Sunny Goyal 208aba2dfd Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby 2015-06-08 23:05:31 +00:00
Sunny Goyal be68dcebbb Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby 2015-06-08 22:32:49 +00:00
Sunny Goyal 4f3e9383eb Code cleanup
> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
2015-06-05 00:34:06 -07:00
Sunny Goyal 12e13e467e Removing LauncherApplication to enable us to easily catch LauncherAppState errors
Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60
2015-06-04 21:20:08 -07:00
Rahul Chaturvedi 799aa04f2f Use a broadcast receiver instead of a settings observer.
Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
2015-06-04 19:17:23 -04:00
Sunny Goyal 53d7ee4285 Fixing different bitmap sizes in different orientations
> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
2015-06-03 19:07:44 -07:00
Winson Chung 8f1eff7b6c Adding context for app launches.
Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
2015-06-02 16:58:30 -07:00
Sunny Goyal 5b9ebcab3c Fixing preloaded widget not getting used for animation
> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
2015-06-02 15:20:03 -07:00
Sunny Goyal 316490e636 Removing some synthetic method creation
> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
2015-06-02 10:04:59 -07:00
Sunny Goyal 5683f87172 Adding an asynchronous search interface for apps search
Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e
2015-06-01 15:58:29 -07:00
Rahul Chaturvedi e4ca4a9ca1 Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby 2015-06-01 20:56:15 +00:00