Commit Graph

49925 Commits

Author SHA1 Message Date
Tony Wickham def6e474da Use promisedIntent instead of intent when deep shortcuts are restored.
This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
(cherry picked from commit fc02c1b446)
2016-08-30 00:09:11 +00:00
Tony Wickham bbb7e35b4a Merge "Use promisedIntent instead of intent when deep shortcuts are restored." into ub-launcher3-calgary-polish
am: 765ff3d7c9

Change-Id: Icd239f0afb1f17a1f65a015b6edca34299acb0ab
2016-08-29 23:55:58 +00:00
Tony Wickham edadc51db4 Use promisedIntent instead of intent when deep shortcuts are restored.
am: fc02c1b446

Change-Id: Ic4c7bc4dfbeb2260f411edd56df2df3769127365
2016-08-29 23:55:57 +00:00
Tony Wickham 765ff3d7c9 Merge "Use promisedIntent instead of intent when deep shortcuts are restored." into ub-launcher3-calgary-polish 2016-08-29 23:38:03 +00:00
Tony Wickham fc02c1b446 Use promisedIntent instead of intent when deep shortcuts are restored.
This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
2016-08-29 15:59:28 -07:00
Hyunyoung Song d3bf9803f5 ComponentName null check MUST proceed before creating ComponentKey.
Change-Id: I2460561b62d77d3f2f17dc2a7db765785b46a8c6
2016-08-29 14:43:53 -07:00
Sunny Goyal eedf79d2de Adding a debug flag to prevent broken downlodas from getting removed during restore
am: b05a00a441

Change-Id: I25f3b4490c543b05e31be181fc43fde40fc87c4e
2016-08-29 21:12:13 +00:00
Sunny Goyal b05a00a441 Adding a debug flag to prevent broken downlodas from getting removed during
restore

After setting this flag apps do not need to have an active settion during restore
which would simplyfy debugging backup-restore bugs.

Change-Id: I89f2d3ec677281887f8bab8559ace991709caadc
2016-08-29 11:19:26 -07:00
Sunny Goyal a235601e21 Fixing wrong label in the AndroidManifest Updating the gradle and protobuf library version
am: 4a4b49ff34

Change-Id: I7e23525895a33b712a5885a3e6fd70a3ee699faa
2016-08-26 05:38:24 +00:00
Sunny Goyal 4a4b49ff34 Fixing wrong label in the AndroidManifest
Updating the gradle and protobuf library version

Change-Id: I0470ebe7465cf2f04ef59688ac2b3f4933d48ad1
2016-08-25 22:23:06 -07:00
Sunny Goyal a37ca37355 Merge "Improve handling of external deletion in LauncherProvider.delete" into ub-launcher3-calgary-polish
am: bb248828fc

Change-Id: I5afa0ef4bd5bd3a25d4002ac8a08bd5fa0ce638c
2016-08-26 02:52:13 +00:00
Louis Begin 29ddd172f9 Improve handling of external deletion in LauncherProvider.delete
am: a9c21c624c

Change-Id: I73e1244fb97428b04d4c5cfe7f2b7c2d0477f60b
2016-08-26 02:52:13 +00:00
Sunny Goyal bb248828fc Merge "Improve handling of external deletion in LauncherProvider.delete" into ub-launcher3-calgary-polish 2016-08-26 02:45:38 +00:00
Sunny Goyal 2293c805a0 Updating the workspace scrim The scrim is only drawn on the top in both normal & transposed layout
am: c855023982

Change-Id: If787c44c2c4816efceb0a6a47807be38ceb3855f
2016-08-26 00:32:03 +00:00
Sunny Goyal c855023982 Updating the workspace scrim
The scrim is only drawn on the top in both normal & transposed layout

Bug: 29189114
Change-Id: I99bbf4c4a73e172e000ef24af0662e1922592e0a
2016-08-25 16:16:11 -07:00
Sunny Goyal 7c3b703e69 Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish
am: 2fb1356be6

Change-Id: Icd9de3ac14653823a44f052fb2fc361a7eb79c56
2016-08-25 23:04:32 +00:00
Sunny Goyal bf2e28b7d8 Moving the scrim to draglayer
am: 65ceb5aa55

Change-Id: I6587c1bf08953daedd95a236c60268958630fe44
2016-08-25 23:04:29 +00:00
Sunny Goyal 2fb1356be6 Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish 2016-08-25 22:49:24 +00:00
Sunny Goyal eb4016c7fc Starting the settings activity with same animation as wallpaper (and widgets tray)
am: f3a09f9757

Change-Id: I61db6621156c77869d71553b1c14e3b0592c4536
2016-08-25 18:30:25 +00:00
Sunny Goyal f3a09f9757 Starting the settings activity with same animation as wallpaper (and widgets tray)
Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526
2016-08-25 09:46:39 -07:00
Hyunyoung Song 42a3df10fa Merge "Prevent against NPE inside ComponentKey" into ub-launcher3-calgary-polish
am: c760da5688

Change-Id: I0f05bb5ce62145f375d7927efe3d7341cc045ee6
2016-08-24 23:36:12 +00:00
Hyunyoung Song d8b4f49d48 Prevent against NPE inside ComponentKey
am: ada6cbe4ef

Change-Id: I63b1286901979479aa2f88ae26107a5313a4d224
2016-08-24 23:36:11 +00:00
Hyunyoung Song c760da5688 Merge "Prevent against NPE inside ComponentKey" into ub-launcher3-calgary-polish 2016-08-24 23:30:05 +00:00
Hyunyoung Song ada6cbe4ef Prevent against NPE inside ComponentKey
b/31063280

Change-Id: I71254fc1a3244fd6834ebf65923d194f17afc1ba
2016-08-24 16:23:09 -07:00
Sunny Goyal 9d0ba47a14 Fixing the hotseat import logic am: d70ef24233
am: d56b157004

Change-Id: I6c4f4436e663f121fcbb193f99f810bc4819773d
2016-08-24 23:05:08 +00:00
Sunny Goyal d56b157004 Fixing the hotseat import logic
am: d70ef24233

Change-Id: I1be426419d7a7f044dfd81207c3ee3b1df43b404
2016-08-24 23:02:08 +00:00
Sunny Goyal d70ef24233 Fixing the hotseat import logic
The import logic following the behavior: Improt everything and force
run GridMigrationTask to automatically remove broken icons.
This logic would fail for hotseat as the replacement happens before
the GridMigrationTask, which will not replace the broken targets
appropriately

The cl changes some logic only for hotseat import
> After import remove any broken icons/empty folders
> When adding default icons, only add as much icons as required. Since
GridMigrationTask uses weights, it sometimes removes imported icon, if
the hotseat size becomes too large.

Bug: 30909630
Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91
2016-08-24 11:31:13 -07:00
Sunny Goyal 46614c1e92 Merge "Comparing widget sizes when sorting if the labels are same" into ub-launcher3-calgary-polish
am: b68f959992

Change-Id: I8f480b41ede8af7aa09f56f83187a1a68d4d60bb
2016-08-24 02:28:14 +00:00
Sunny Goyal 44f62e9e49 Comparing widget sizes when sorting if the labels are same
am: a1503f47aa

Change-Id: I5650e5864717250b8506ad0898470f36b7da3d14
2016-08-24 02:28:14 +00:00
Sunny Goyal b68f959992 Merge "Comparing widget sizes when sorting if the labels are same" into ub-launcher3-calgary-polish 2016-08-24 02:16:48 +00:00
Sunny Goyal 65ceb5aa55 Moving the scrim to draglayer
> This causes the scrim to animate with the content on first launch
> Also removing the logic to disable scrim based on state. That
logic was only executing onResume which could lead to an invalid state

Bug: 30972956
Bug: 30576826

Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01
2016-08-23 19:04:23 -07:00
Sunny Goyal 6aa589a35e Checking for duplicate intent with proper source bounds. am: 92cb84d4e5
am: 9601b96df6

Change-Id: I7bece935819b2b839afb0daab18356d12f3ae016
2016-08-24 00:57:37 +00:00
Sunny Goyal 9601b96df6 Checking for duplicate intent with proper source bounds.
am: 92cb84d4e5

Change-Id: I934ffa4fbb1a9be31d19f69554092af77fe06612
2016-08-24 00:55:07 +00:00
Sunny Goyal 92cb84d4e5 Checking for duplicate intent with proper source bounds.
Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
(cherry picked from commit cbfe71dba3)
2016-08-24 00:46:01 +00:00
Sunny Goyal 8fe82f9411 Checking for duplicate intent with proper source bounds.
am: cbfe71dba3

Change-Id: If1692db2c8ca441704674055a388988d9d67443c
2016-08-23 22:17:56 +00:00
Sunny Goyal cbfe71dba3 Checking for duplicate intent with proper source bounds.
Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
2016-08-23 13:27:38 -07:00
Sunny Goyal bc668d00c1 Merge "Adding a resource pointer to the app name so that derived projects can easily modify app name" into ub-launcher3-calgary-polish
am: 527c27c04e

Change-Id: I763df184429f1f4435b4f6f3df59c5f0b2de3ad6
2016-08-23 20:18:36 +00:00
Sunny Goyal 5e738dcceb Adding a resource pointer to the app name so that derived projects can easily modify app name
am: 112ce42926

Change-Id: I15a88910935174e83ed25a806df213817d2e7cbe
2016-08-23 20:18:35 +00:00
Sunny Goyal 527c27c04e Merge "Adding a resource pointer to the app name so that derived projects can easily modify app name" into ub-launcher3-calgary-polish 2016-08-23 20:04:53 +00:00
Hyunyoung Song 3e12a63e57 Merge "Landscape container padding update. b/30021487" into ub-launcher3-calgary-polish
am: 6b5e60d0e4

Change-Id: I411c5fc3ccde4ead67d71e0c8c171fa8994cc7dc
2016-08-23 18:29:24 +00:00
Hyunyoung Song 0afba36c52 Landscape container padding update. b/30021487
am: 9d96fd5790

Change-Id: I3449fe4a55de2a3f74b77982b688254b2d5e2686
2016-08-23 18:29:23 +00:00
Hyunyoung Song 6b5e60d0e4 Merge "Landscape container padding update. b/30021487" into ub-launcher3-calgary-polish 2016-08-23 18:11:25 +00:00
Hyunyoung Song 9d96fd5790 Landscape container padding update.
b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
2016-08-23 11:06:24 -07:00
Sunny Goyal 112ce42926 Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c
2016-08-22 16:45:58 -07:00
Tony Wickham a3df3fd181 Cancel hotseat color animator before setting a new color. am: ef0c537925
am: 5f2ea1e9ce

Change-Id: Ifcb3be18e27ad1b2ee7500981363d752188c11aa
2016-08-22 23:27:09 +00:00
Tony Wickham 5f2ea1e9ce Cancel hotseat color animator before setting a new color.
am: ef0c537925

Change-Id: I1aea3e288d7e54e788ad95b8599e6d909458b220
2016-08-22 23:23:09 +00:00
Tony Wickham ef0c537925 Cancel hotseat color animator before setting a new color.
There was a race condition that caused the new color to not be
applied. For example, here's how the hotseat would become transparent:
1 Launcher is loaded for the first time; as such, there is not yet a
  color defined for the hotseat, so we start animating to the provided
  default (Color.TRANSPARENT). Meanwhile we start the color extraction.
2 When the color extraction finishes, we set the hotseat to the new
  color. However, if launcher is paused at the time (perhaps some
  retail mode content is showing), then we don't animate the change.
3 If 2 happens before the animation in 1 is complete, the color from
  2 will be overriden by subsequent animation frames and thus the
  hotseat remains transparent until the wallpaper changes.

Bug: 30956221
Change-Id: Iddf72379b0162f1b32883ad26ce267473e172849
2016-08-22 15:23:01 -07:00
Sunny Goyal a1503f47aa Comparing widget sizes when sorting if the labels are same
Bug: 21441837
Change-Id: Ib0e6d3b84389f900264a0d696d22057426973719
2016-08-18 19:09:46 -07:00
Sunny Goyal 5e3895d404 Removing wrong dead code around direction matching
am: 8f90dcff37

Change-Id: I6e4ba6cf912db4b31ba246855f8a6662ad8afc3b
2016-08-18 22:21:16 +00:00
Sunny Goyal 8f90dcff37 Removing wrong dead code around direction matching
Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
2016-08-18 15:08:22 -07:00