Commit Graph

3860 Commits

Author SHA1 Message Date
Adam Cohen 0ff535eabb Remove references to FloatMath, deprecated in M
-> Allows us to build against M SDK

issue 22822360

Change-Id: I1178eb6bafc348699c5be8c29858eb3dff093e11
2015-07-30 13:04:54 -07:00
Sunny Goyal 249a510ab3 [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
2015-07-16 19:35:36 -07:00
Sunny Goyal 3fec14bedc Merge "[DO NOT MERGE] fixing build break" into ub-launcher3-almonte 2015-07-16 01:03:00 +00:00
Sunny Goyal 1e23e4d24d [DO NOT MERGE] fixing build break
Change-Id: Ief14e03874626d4f6fdf403d98950d9d64b66160
2015-07-15 18:02:14 -07:00
Sunny Goyal e48e570a82 Merge "[Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user" into ub-launcher3-almonte 2015-07-16 00:50:18 +00:00
Sunny Goyal 7fb55d25e3 [Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user
Bug: 21673750
Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
2015-07-15 17:37:24 -07:00
Sunny Goyal 1bbb2ae903 Updating onRequestPermissionsResult signature to public
Change-Id: Ie08caa55a195e9062006d13e86238cca827ef249
(cherry picked from commit dd2e6dfc16)
2015-07-07 18:37:07 +00:00
Sunny Goyal 922eed5762 Removing unused logging
> We store some local logs which are never propagated to the
server and cause unnecessary file-io during app launch

Change-Id: I2b41c3af182de2a87f38ad88f3bae9d250574c26
Bug: 19940630
2015-06-30 18:29:32 -07:00
Sunny Goyal 42ea0db889 [DO NOT MERGE] Adding constants already available in burnaby
Change-Id: I653fe653c4a7ee3644d17f45f3df34e3621aaee8
2015-06-26 15:35:27 -07:00
Dave Hawkey 79f25bedd2 Merge "Add LauncherCallbacks for requesting permissions on MNC" into ub-launcher3-almonte 2015-06-26 16:48:32 +00:00
Dave Hawkey 3a43ed61cb Add LauncherCallbacks for requesting permissions on MNC
Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
2015-06-26 10:27:47 -06:00
Sunny Goyal bb87053ef9 [DO NOT MERGE] Making some constants public
Change-Id: I95665184b100ab83b2171718d82fcc1e31c2fae1
2015-06-26 09:07:39 -07:00
Winson Chung 21a4ccc627 Merge "Add extras required for compilation" into ub-launcher3-almonte 2015-06-19 23:00:34 +00:00
Adam Cohen 54c50bc08f Add extras required for compilation
-> Patching back from a future branch

Change-Id: I5127a82560e39bf391fe083d0eb8932cf2473562
2015-06-19 12:12:50 -07:00
Winson Chung 78564d4e2d Updating ComponentKey for compatibility with build.
Change-Id: I293177c0eff8c162c2d21bfc2aebf83926c62690
2015-06-18 21:05:55 +00:00
Hyunyoung Song 0c979d1f2f Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
(cherry picked from commit 3abd5488cc)
2015-06-09 19:06:29 +00:00
Hyunyoung Song a14cb230da Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte 2015-05-28 21:49:43 +00:00
Hyunyoung Song 89aeda1b78 Guard against monkey actor test NPE inside FocusHelper
b/19626762

Change-Id: Icaff5931f4076323855f23e7165b0e78a11241b6
2015-05-28 14:45:59 -07:00
Adam Cohen c3d4553d46 [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c
2015-05-22 16:19:42 -07:00
Sunny Goyal a6095969bb Preventing NullPointerException when cancelling a shortcut addition
Bug: 21024018
Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
(cherry picked from commit f044bb1edd)
2015-05-13 01:07:17 +00:00
Hyunyoung Song 3af56b6052 Remove duplicate calls to getSortedWidgetsAndShortcuts
b/19904873

Change-Id: I2e56bc0c7524caa2ef3c5fb00f35cb032cd1860b
2015-04-20 21:22:46 -07:00
Adam Cohen 68fdeaadc6 Stop using custom activity transition, rely on system default in these cases
-> workaround for platform issue related to this resource, but also
   a decent code cleanup

issue 20006693

Change-Id: Iea3a2fb14be5ed78d882ddf9d970b12d177f4249
2015-04-02 11:53:48 -07:00
Robert Kozikowski 67c3086163 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
 make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.

It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.

Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
2015-03-30 23:57:46 +01:00
Adam Cohen b823ae4fca Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
2015-03-27 18:09:01 -07:00
Adam Cohen 173f711e03 Ensure that we capture all paths for starting activity for result
-> AppWidgetManagerCompatVL uses an IntentSender to launch the widget
   config activity (to handle the case of cross profile config activities)
-> Launcher was not overriding this method, and so not capturing the fact
   that we are waiting for a result.

issue 19723510

Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
2015-03-27 22:19:38 +00:00
Robin Lee 2dd9f018ff Don't clobber widgets with the same component - DO NOT MERGE
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:16:34 +00:00
Hyunyoung Song fe1dcbf0c5 Fix widget refresh issue on package install/uninstall
Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
2015-03-11 17:40:23 -07:00
Sunny Goyal c6c8fef3e9 Clearing DB if necessary, when applying the default layout
Bug: 19574498
Change-Id: I34850d9a7f7316bcc2cb9fc8a5be57d2488c16a6
2015-03-04 15:20:24 -08:00
Sunny Goyal e72f3d53f8 Fixing wronk rowID check.
Since screenId is changed to primary key, the rowId can now be 0 (earlier
it was auto-increment and never 0)

Bug: 19566734
Change-Id: Icf0e4294a581039101df1ad1756fdb6e581c4cba
2015-03-02 14:26:31 -08:00
Sunny Goyal 633325c4c2 DO NOT MERGE: Setting workspace id as primary key
Bug: 19475231
Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
2015-02-25 16:56:54 -08:00
Sunny Goyal 7470c817e4 Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.
Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
(cherry picked from commit 3c1865ad50)
2015-02-23 17:55:46 +00:00
Sunny Goyal fce720f39a Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte 2015-02-17 20:34:56 +00:00
Sunny Goyal 2434d40ef2 Fixing crash when dragging and dropping a restored widget.
> When the widget is in pending state, AppWidgetProviderInfo is not available

Bug: 19364311
Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
2015-02-17 12:00:30 -08:00
Adam Cohen 80e6beb48c Ensure that layers are properly removed after animation
Bug 19243980

Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
2015-02-13 16:39:10 -08:00
Sunny Goyal c87775d8e6 Fixing rank migration code to handle null values correctly.
Bug: 19297508
Change-Id: I652ef30ab37f5b09204f0388de8e065d64b7724d
2015-02-10 19:53:41 -08:00
Sunny Goyal 8f9a787945 Launcher crashes on widget bind permission prompt
Change-Id: If09feb357e1604e5ee1a66305b022674f466833e
(cherry picked from commit e6b63a3d73)
2015-02-06 23:38:45 +00:00
Adam Cohen bd4a78937f Merge "Revert "Adding Launcher3 callbacks for trimming memory."" into ub-launcher3-almonte 2015-02-06 23:29:32 +00:00
Adam Cohen e2d4ee1b21 Revert "Adding Launcher3 callbacks for trimming memory."
This reverts commit 42f3b9e028.

Change-Id: I65a7c893576c0901b231bab9abe6937f99415f1e
2015-02-06 23:28:49 +00:00
Robert Kozikowski acbe9f6546 Merge "Adding Launcher3 callbacks for trimming memory." into ub-launcher3-almonte 2015-02-04 18:38:31 +00:00
Sunny Goyal 4802b4107a Adding null-check before parsing an intent
Bug: 18962665
Change-Id: Iae02435f019fa205f3ee3ae721a29f26b3b56dd2
2015-02-04 10:05:47 -08:00
Robert Kozikowski 42f3b9e028 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Change-Id: I6d3d4d1f0457c67abcad3ba4516c87abcf666b05
2015-02-04 15:06:54 +00:00
Adam Cohen b76c165aad Fix ClassCastException due to typo
issue 19159790

Change-Id: I5f9fa0e3672c10a460606dcb13b158bd4e614813
2015-01-30 10:29:26 -08:00
Nilesh Agrawal a258f812fa Modify strict mode thread policy for LauncherProvider.
Allowing thread writes too as SQLiteOpenHelper.getWritableDatabase needs it.

Bug: 19094644
Change-Id: I39fe97a9e7fc07c38a4f8e5c5979196b742e36bf
2015-01-26 14:07:29 -08:00
Sunny Goyal b564efb024 Adding support for <include> tag in AutoInstall layout
Bug: 19121893
Change-Id: I760fa76d6e63c1aa0152e8cd710aba0d6ef4462a
2015-01-23 13:53:38 -08:00
Nilesh Agrawal fde11852cf Add strict mode exception in LauncherProvider.
Content providers are created during process startup (before Application.onCreate),
and we should not be doing expensive stuff in Provider.onCreate

Adding an exception for now as it looks like LauncherProvider initialization is needed
before we can show meaningful UI.

Bug: 19094644
Change-Id: I860c2934c110d3a43f1a3afa00729077dc64796c
2015-01-21 11:50:57 -08:00
Sunny Goyal 54cdef77db Merge "Adding accessibility controls" into ub-launcher3-almonte 2015-01-17 01:58:01 +00:00
Sunny Goyal 71b5c0b988 Adding accessibility controls
> Adding 'Remove' option to workspace items
> Adding 'Add to workspace' to all apps and widget list items, which
adds the item to the first available space, giving preference to
the current workspace screen
> Adding 'App info' and 'Uninstall' options to appropriate items

Bug: 18482913
Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
2015-01-16 17:40:41 -08:00
Sunny Goyal c0ee675f69 Avoiding writing the Metadata in the backup if nothing was changed in the backup
Change-Id: I4608ab5511b01f0d0018596d68e4341635649f73
2015-01-16 14:11:12 -08:00
Sunny Goyal 08f7261d11 Adding a rank column for itemInfo
> Rank is used to determine position of an item
in a folder.

Bug: 18590192
Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f
2015-01-13 22:19:56 +00:00
Sunny Goyal e87e6abc36 Removing dead code from Launcher provider
> Removing DB upgrade logic for versions before 12. Launcher3
was forked off Launcher2 when DB version was already 12, so, there
can never be a lower version of the DB.
> Removing logic for auto import of launcher2 DB. This flow had
been permanently disabled by a flag, and we show a confirmation
prompt/cling before migration

Change-Id: I2ac2f21fefc41ee247164566a088927263b09459
2015-01-05 12:48:11 -08:00