Commit Graph

501 Commits

Author SHA1 Message Date
Vinit Nayak
5a6863f14a Unify split options into single option
* No more split left/right/top, only have
splitscreen and icon shows vertical or horizontal
split windows
* Replace existing split icon for FreeForm

Fixes: 264930810
Test: Tested landscape and portrait, workspace,
overview, allapps

Change-Id: I443f93b6b01760b726bf9f024fb1324fdf0ed03c
2023-02-01 17:27:57 -08:00
Bill Yi
ef6ec03345 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2ee7d4e8b783c974f15524b54a5a456fa2fedd03
2023-01-15 20:53:18 -08:00
Stefan Andonian
e82476ad3b Rename LoaderResults to LauncherBinder.
LoaderResults implies a data object, not binding code specific to
Launcher UX containers. This CL merely renames this class and its
usages. It also adds a comment that explains why the functionality is
split into a base class and an implementing class.

Bug: 251502424
Test: Compilation worked correctly.
Change-Id: I01b5ac2f717e9b20612538d5c1e0ca947beb593f
2023-01-11 20:32:25 +00:00
Bill Yi
57c5f6b88d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icfba86a007a8ae92e62d4c860c239e48f05bc9ff
2022-12-29 21:37:41 -08:00
Bill Yi
4df6ef67bd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I11441ec480b0cba2244fa8a7ad9e3ac5f820e59e
2022-12-16 04:46:08 -08:00
Stefan Andonian
146701ca3e Move SharedPreferences code to its own class.
Bug: 251502424
Test: Code compiled correctly.
Change-Id: Iea0d6ab2999504117546ee0f7adc0c7b8b45c065
2022-11-17 17:22:47 +00:00
TreeHugger Robot
698239e16a Merge "Revert "Introducing new variable to enable/disable shortcuts."" into tm-qpr-dev 2022-11-17 11:28:05 +00:00
Bill Yi
91235e9169 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie6806240014abdb72e330a6c6041de01360ad6ec
2022-11-16 02:39:22 -08:00
Bill Yi
b3fef31ab7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6664251e87a9ab69de224ebec5b6f183afe2ed2b
2022-10-15 09:49:34 -07:00
Raj Garg
4b90dbe967 Revert "Introducing new variable to enable/disable shortcuts."
Revert "Introducing new variable to enable/disable shortcuts."

Revert submission 19632697-cherrypick-GO-DISABLE-SHORTCUTS-tyyzrpy9oe

Reason for revert: Reverting changes for the recent feature built by me. This CL was a part of the feature. Please take a call if we should revert it or not.
Reverted Changes:
Ib373b042f:Introducing new variable to enable/disable shortcu...
I4274cb468:Introducing new variable to enable/disable shortcu...

Change-Id: I81f338be71185cb008e81b020c5b3a7b01b64c58
2022-09-23 17:04:29 +00:00
Raj Garg
2e106277d7 Merge "Introducing new variable to enable/disable shortcuts." into tm-qpr-dev 2022-09-09 03:41:47 +00:00
Bill Yi
ad6d6d404f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6e7b9c26fbfd4f1334431f4882b0ec617749d39d
2022-08-21 23:17:25 -07:00
Raj Garg
63ee5d0908 Introducing new variable to enable/disable shortcuts.
Widgets and shortcuts are two different entities but they are controlled
by same variable GO_DISABLE_WIDGETS. In this CL I have introduced a new
variable GO_DISABLE_SHORTCUTS to enable/disable widgets.

Test: Tested manually on device.
Bug: 236268654
Change-Id: Ib373b042fbfd0493e6345ef10e5631dbfd96b8c3
2022-08-16 09:18:23 +00:00
Bill Yi
cd79e4ed7b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6aff60edb2f1086c1c6ee47e8a442ce7e7b78def
2022-08-07 12:02:11 -07:00
Bill Yi
c3e0a4b963 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib42c3bf46341462f15fc15efa34a57944bcfcede
2022-07-21 20:01:58 -07:00
Bill Yi
ef46825eb4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie30d608b08e253a8757fd48beefa54e38a363e06
2022-07-13 21:20:20 -07:00
Abhilasha Chahal
ee14d4761a Add LAUNCHER_SYSTEM_SHORTCUT_APP_SHARE_TAP event
Bug: 233224567
Test: Manually verified the event in logs
Change-Id: Ie81ca8774adb241f1c8635444dad884f34f3929d
2022-05-19 19:21:45 +00:00
Brandon Dayauon
b4ccd3dc23 Fix GO Phones..added attribute to this device profile that other phones already had
Bug: 232801991
Test: Presubmit
Change-Id: I0c9d066fc11d5cec8f72055fc76640f926c40efd
2022-05-17 12:16:47 -07:00
kholoud mohamed
00f80ed1ae Add missing enterprise string
Bug: 231592687
Test: manual
Change-Id: I59e4d899084c965dfbca49f6c65c3b9809a89ed8
2022-05-09 19:48:40 +01:00
Tracy Zhou
7183e4b460 Merge "Add originalView of the menu to SystemShortcut" into tm-dev 2022-04-26 17:28:40 +00:00
Shikha Malhotra
2e255ed0ac Merge "Refactor code to be used in LauncherLily features" into tm-dev 2022-04-21 07:50:32 +00:00
Shikha Malhotra
e957b600d3 Refactor code to be used in LauncherLily features
Refactor add to workspace code to be used in Lily Launcher.
Also utilising code swap feature to swap out functionality of sorting
items on workspaces and finding next vacant space.

Bug: b/218186705
Test: Manually tested Launcher3 works.
Change-Id: I42a44eabeb307e1d23ef333e0a169437f9062bb6
2022-04-20 07:22:20 +00:00
Bill Yi
05e2272138 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie30fb3d0870ddb6c69511b5200058dd3b4961479
2022-04-12 21:23:51 +00:00
Tracy Zhou
c2538d748a Add originalView of the menu to SystemShortcut
Split from home animation needs to originate from the app icon instead of the menu item icon. This can be useful for other animations in the future.

Bug: 226395821
Test: N/A
Change-Id: If45d80e347ba275bd550b6acd6ad81b319e753a3
2022-04-11 17:13:35 -07:00
Bill Yi
dffa0c3186 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia234a01c49be8012beba9944f28198a1a04d162a
2022-03-24 05:37:30 +00:00
Bill Yi
b4479127a7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I453c0760c0bd69f5f758b6223b9cbae3c2ec2771
2022-03-17 03:01:56 +00:00
Bill Yi
5a2d58c05d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6831d3b82953ea10ea0ee4a473c3b174e522913f
2022-03-02 19:27:29 +00:00
Jon Spivack
4a2732da03 AppSharing: Better handling of Work Profiles
This change improves the Work Profile use case in two ways:
1. When sharing is disabled for the profile, the Share App button is grayed out, and an appropriate message is displayed if the user taps it.
2. When sharing is enabled for the profile, it actually works.

Bug: 175159046
Bug: 210168826
Test: Manual (toggled DISALLOW_BLUETOOTH_SHARING via Test DPC on local device)
Test: m -j RunLauncherGoGoogleRoboTests ROBOTEST_FILTER=com.android.launcher3.AppSharingTest
Change-Id: Id7ba8efc587d0b94aa1f9b2004bf45254b39f992
2022-01-05 14:14:00 -08:00
Fedor Kudasov
920dc2f28f Add @Nullable annotations for simple cases
Add @Nullable annotations for the fields that are expected
to be null at arbitrary lifecycle time and are their usage
is protected by null checks.

Bug: 205828770
Test: m LauncherGoResLib
Change-Id: I9c31e1dc0d01cdd68dfff0a005ba1f40c257f8ea
2021-11-11 14:58:45 +00:00
Bill Yi
525330faa9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I708e7a89590fb1d0fb8d26d1cc00b310602e0ca5
2021-11-05 22:13:55 +00:00
TreeHugger Robot
a66c0bfcfa Merge "Make Launcher activity restart on density change" into sc-v2-dev am: e641701c9f am: 67cace3558
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16183372

Change-Id: I735d497989d27c0907bbc193ca4342cc11cb647d
2021-11-05 12:12:54 +00:00
TreeHugger Robot
67cace3558 Merge "Make Launcher activity restart on density change" into sc-v2-dev am: e641701c9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16183372

Change-Id: I8e26c801c530d4f2851fe7d41cc58ed83ff5d51b
2021-11-05 12:02:23 +00:00
Alex Chau
84fe75d72e Make Launcher activity restart on density change
- Launcher used to restart when density changes before http://ag/14234761, which added smallestScreenSize and density in configChange
- http://ag/14234761 aims to avoid restart when switching display in split dispalys, for which only size changes, therefore density is unnecessary in configChange
- Keeping density in configChange make Launcher acitvity to stay after changing display size, making all buttons stays in old size in previous denstiy, which is a bug

Bug: 204157738
Test: manual
Change-Id: Ib85326078c67c35d90dc5e9ae5c20eeb5286a610
2021-11-04 11:33:16 +00:00
Bill Yi
7dc44969e0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf3e36a467591f5525ca71ce72559f26c35ab51b
2021-10-30 01:25:30 +00:00
Jon Spivack
688621498a P2P App Sharing: Gray out disabled SystemShortcut
The Share App system shortcut is disabled for apps that are deemed unshareable. This updates the UX to gray out the shortcut instead of hiding it. When the user clicks on the grayed out shortcut, a Toast message is displayed. This update also enables the shareability check.

In order to properly gray out the shortcut, this also fixes a bug with BubbleTextView in which ColorStateLists weren't applied correctly.

Bug: 202556634
Bug: 204495363
Test: Manual (observed UX on Wembley device in regular and dark themes)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: Ieb04baf8c9cb9d325119cb97fceb96f2fc5a62ff
2021-10-28 19:30:31 -07:00
Steven Ng
f6dce85efb Merge "Group weather widgets under the widget category" into sc-v2-dev am: 9114f280a2 am: bec302ab6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897183

Change-Id: I982d42b726a75e58fb2f9c2a608e7bfb4bd6874a
2021-10-01 10:44:44 +00:00
Steven Ng
bec302ab6c Merge "Group weather widgets under the widget category" into sc-v2-dev am: 9114f280a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15897183

Change-Id: I8b251fb6d4631d7f0f33a60e3a90e80a42ca908b
2021-10-01 10:28:10 +00:00
Steven Ng
9114f280a2 Merge "Group weather widgets under the widget category" into sc-v2-dev 2021-10-01 10:17:47 +00:00
Steven Ng
43859f10bc Group weather widgets under the widget category
Test: manual (see video in bug) and added PackageUserKeyTest
      Also tested pending conversation widget to ensure the right icon
      is shown.
Fix: 201062480
Change-Id: If23c28bd93c54fb1747648309ab3c238a1810902
2021-09-30 14:22:21 +01:00
TreeHugger Robot
2e4a003f71 Merge "Remove the Share button option from Overview." into sc-v2-dev am: 70cc9ffe7c am: 8775a79741
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15935390

Change-Id: I27bfb9c63fb618abb0faaa116e44b9e95aa84b45
2021-09-30 04:38:22 +00:00
TreeHugger Robot
8775a79741 Merge "Remove the Share button option from Overview." into sc-v2-dev am: 70cc9ffe7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15935390

Change-Id: I34365ae2b2f97536e1bc992ec583b11ce00bdc75
2021-09-30 04:23:41 +00:00
Zak Cohen
283ee7d74b Remove the Share button option from Overview.
It has never been enabled, and is not plan of record.

Bug: 201446691
Test: local and updated unit tests

Change-Id: I5ac6d40ba1dbcf28de4355cc51fff74cfb37ebc6
2021-09-29 14:43:27 -07:00
TreeHugger Robot
e57bcd984f Merge "Remove check that system rotation must be allowed for recents rotation to be allowed." into sc-v2-dev am: 42b5b78bbf am: d60f4bf549
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15940373

Change-Id: I887750ba8b885e371d8268cb8e615cae4a17b403
2021-09-29 17:08:39 +00:00
TreeHugger Robot
d60f4bf549 Merge "Remove check that system rotation must be allowed for recents rotation to be allowed." into sc-v2-dev am: 42b5b78bbf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15940373

Change-Id: I657a42949480520af4985053e273a7803c50bf07
2021-09-29 16:56:03 +00:00
Pat Manning
da71f41263 Remove check that system rotation must be allowed for recents rotation
to be allowed.

This check existed before the user was able to rotate via the rotation
button while autorotate setting is off.

Test: manual
Fix: 201511975
Change-Id: I920886cb42ec5b8f4d3eb0bdd80b216cd7c3c849
2021-09-29 14:06:55 +00:00
Bill Yi
6427f86bed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I10f5d231cec0b979702af96e0d82a775f57409d9
2021-09-24 09:29:50 +00:00
Bill Yi
e43c41ea83 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ef47f8d03d096e65a95fe0481d42919f6cb45f6
2021-09-24 09:26:51 +00:00
TreeHugger Robot
797a282642 Merge "Fix crash in Go Launcher" into sc-v2-dev am: eb2113af00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15889274

Change-Id: Id9f717a6b4c4893246bc5ef124423a57f80e7aeb
2021-09-22 21:16:53 +00:00
Peter Kalauskas
51ad3bfdb8 Fix crash in Go Launcher
Bug: 198141465
Bug: 200747950
Test: Check that wembley is usable after unlocking
Change-Id: I37620be4f24a2f0f8f08483991fad7760415b67c
Merged-In: I37620be4f24a2f0f8f08483991fad7760415b67c
(cherry picked from commit 1beab2a3d7)
2021-09-22 19:08:35 +00:00
Jon Spivack
b49500a09a Merge "P2P App Sharing: Add Shareability Cache" 2021-09-21 22:31:11 +00:00