Commit Graph

33301 Commits

Author SHA1 Message Date
Tony Wickham 38b1220767 Stop clearing focus when snapping to a new workspace page.
am: 04e2c9ef56

* commit '04e2c9ef5663262fc9dd08ffc4b59fe305a017f3':
  Stop clearing focus when snapping to a new workspace page.
2015-11-03 22:07:57 +00:00
Yohei Yukawa 1bd9a430ed Enable selection action mode for Android M+.
Since I62963d225e6ea5d2ec9d8ebc8a6d73099f5d6c7f, we have disabled
selection action mode in the folder-name editing mode on Launcher,
mainly because it messed up the view on phones.  However that is no
longer the case in Android M and later, where floating action mode
is available.

With this CL, we start relying on the default floating action mode
in Android M and later.

Bug: 22210697
Change-Id: Ie19e7844194acd86cdb013254a1923f0b1d78e11
2015-10-30 18:54:58 -07:00
Tony Wickham 04e2c9ef56 Stop clearing focus when snapping to a new workspace page.
Clearing the focus was causing the first child in the new page to
immediately take focus, which caused FocusIndicatorView jank when
using a keyboard.

Bug: 25256728
Change-Id: I5ab31ebc3fe370d7ac9e9792b30dab3467023738
2015-10-30 18:04:48 -07:00
Tony Wickham d469b7fdc2 Merge "resolve merge conflicts of 4530aca912 to ub-launcher3-master." into ub-launcher3-master 2015-10-30 18:48:11 +00:00
Tony Wickham 5ea422e39e Added Gravity.CENTER_HORIZONTAL to drop target layout params.
I'm not sure if it is strictly necessary, but it is probably good to
be more explicit regardless.

Change-Id: Ib7647dbcb5449e22ef87da8d49b4e7804ba5c17f
2015-10-30 11:22:44 -07:00
Tony Wickham a6631d76a7 resolve merge conflicts of 4530aca912 to ub-launcher3-master.
Change-Id: I55a0cd751cbcce8fcc8efa23a0a88a01ec08522b
2015-10-30 11:09:44 -07:00
Tony Wickham c1ff24c077 resolve merge conflicts of a3c74d10a7 to ub-launcher3-master.
Change-Id: Ibeb2499ac278e4094a2922501cfffad2489e58ed
2015-10-30 10:37:43 -07:00
Sunny Goyal c3642d4509 Build fix
Change-Id: I0bf4241aa48f25f2b5774726d1d75dfb5a20a2e5
2015-10-30 10:27:08 -07:00
Sunny Goyal 25c2e3ef07 Allowing widgets to be focusable
> Pressing 'enter' enters the focus inside the widget.
> If the widget has only one focusable, it directly performs click
> Pressing 'esc' brings the focus back to the parent host.

Bug: 25199581
Change-Id: Ia7fd5d929f5945d61173abd349660a5efbe74afc
2015-10-30 10:03:45 -07:00
Tony Wickham 4530aca912 Set parallax offset to be 0.5f for default wallpapers.
This ensures they are centered as they were without any offset.

Bug: 25347076
Change-Id: Id773cd89463d47b350e60878c00e1112e0244414
2015-10-30 09:52:22 -07:00
Sunny Goyal 4f63c76bfe Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master 2015-10-30 00:33:46 +00:00
Tony Wickham a3c74d10a7 Setting correct height for search bar widget options bundle.
- Seperate search bar height from its top and bottom paddings
- Report this height plus 8dps top and bottom for the widget options
- Use a separate bottom padding to adjust spacing between QSB and
  the workspace
- Add tests to verify the height of the search bar in both normal and
  tall modes (ran on Nexus 6, 7, and 10)
Change-Id: Ia7557785d1b38194eee869d0460456e8f33447d5
2015-10-29 12:18:28 -07:00
Winson Chung b9388f5742 Merge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby-polish
am: cbdb153893

* commit 'cbdb15389330aac3e4f5f404c20195ba13991dbb':
  Disabling the desaturation of fast scroll items.
2015-10-28 22:38:28 +00:00
Winson Chung cbdb153893 Merge "Disabling the desaturation of fast scroll items." into ub-launcher3-burnaby-polish 2015-10-28 22:35:00 +00:00
Winson c08c59de07 Disabling the desaturation of fast scroll items.
Change-Id: I7e90e3b35dc6473ba5e2319abcea5c0c76cbd708
2015-10-28 15:30:38 -07:00
Sunny Goyal 4ac9a3ca98 Merge "Making all provider calls using content resolver." into ub-launcher3-master 2015-10-28 22:24:35 +00:00
Sunny Goyal 097db343a4 Setting statusbar and nav bar colors in theme instead of code
Change-Id: I4da50809d14f5fa4e47df47fcfd99df7b713950d
2015-10-28 14:30:01 -07:00
Tony Wickham 653fa67888 Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish
am: c3d76582b6

* commit 'c3d76582b656fdabc92a470ebe0d986b58c44751':
  Add null check in Launcher onNewIntent() before moveToDefaultScreen().
2015-10-27 01:06:08 +00:00
Tony Wickham c3d76582b6 Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish 2015-10-27 01:02:26 +00:00
Sunny Goyal 2225ba3046 Fixing null check when calling mutateOnMainThread
am: 1ba7e36cc8

* commit '1ba7e36cc8901b34b91d06fdc868a63f9a8fad2d':
  Fixing null check when calling mutateOnMainThread
2015-10-26 18:02:31 +00:00
Sunny Goyal 1ba7e36cc8 Fixing null check when calling mutateOnMainThread
Bug: 25269169
Change-Id: I74f7fb833a374f59a16487099f1bf72b086e88ee
2015-10-26 10:42:12 -07:00
Tony c1739096b4 Add null check in Launcher onNewIntent() before moveToDefaultScreen().
There is a race condition that occurs primarily (maybe entirely) with
Android Auto, it seems because they hijack the Home intent or something
similar. I'm not exactly sure how Android Auto works, but if I pair my
phone with the Desktop Head Unit (car dashboard emulator), I can repro
the NPE fairly easily by simply force closing Android Auto and then
disconnecting my phone from the DHU. If I don't force close Android
Auto, then pressing home launches Android Auto or other apps that I
assume handle some custom intent, such as Car Home Ultra, instead of
normal Home intents such as Launcher3/Google Now Launcher. So I think
what's happening is that, when the phone is disconnected from the car,
Android Auto restores and launches the real home intent (Launcher 3)
around the same time that it destroys the previous home intent
(Android Auto, Car Home Ultra, etc.). This could cause the NPE if both
intents are actually Launcher 3, as is the case when Android Auto is
already closed, because mWorkspace is set to null in
Launcher#onDestroy() (something like onNewIntent() --> post() called
--> onDestroy() --> post() runs). This is consistent with the fact
that I can guarantee a repro if I use postDelayed() instead of post().

Long-winded explanation aside, I think this fix is safe, especially
since we already have a null check for mWorkspace in onNewIntent(),
just not inside the post().

Bug: 24610231

Change-Id: I42f75b83946f375d947be1961a1f2a03a3707a84
2015-10-26 01:31:53 +00:00
Sunny Goyal 6e3cffe8ef Merge "Update the Launcher3 backup.proto to use the deprecated nano package." am: 54076676a5 am: 1cebcca996
am: 135e8cb721

* commit '135e8cb721efee9d828fc98044a9340cc354b3a4':
  Update the Launcher3 backup.proto to use the deprecated nano package.
2015-10-23 19:41:46 +00:00
Sunny Goyal 135e8cb721 Merge "Update the Launcher3 backup.proto to use the deprecated nano package." am: 54076676a5
am: 1cebcca996

* commit '1cebcca996cf6e3e583dec8aa970091c8f4f75f0':
  Update the Launcher3 backup.proto to use the deprecated nano package.
2015-10-23 19:38:33 +00:00
Sunny Goyal 1cebcca996 Merge "Update the Launcher3 backup.proto to use the deprecated nano package."
am: 54076676a5

* commit '54076676a516d87a265196715a0f3b35da751067':
  Update the Launcher3 backup.proto to use the deprecated nano package.
2015-10-23 19:34:14 +00:00
Tony Wickham c1763b24fc resolve merge conflicts of 52040c2d51 to ub-launcher3-master.
Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
2015-10-23 12:29:44 -07:00
Sunny Goyal 54076676a5 Merge "Update the Launcher3 backup.proto to use the deprecated nano package." 2015-10-23 19:28:50 +00:00
Tony Wickham 52040c2d51 Merge "Set search bar height before setting up views in Launcher." into ub-launcher3-burnaby-polish 2015-10-23 18:38:46 +00:00
Daniel Weis 01079ac66c Update the Launcher3 backup.proto to use the deprecated nano package.
This fixes the build breakage that will be caused by
I0b930811a3a8240c236d3708d51f11bc04241593

Change-Id: Ie824b04fdaa80ebfa0ba1f0675cf08ede134be12
2015-10-22 19:31:20 -07:00
Tony Wickham 92adb669da Don\'t add cells to FocusLogic sparse matrix if they aren\'t focusable.
am: df315180f0

* commit 'df315180f0653702b470beea62f27927e45fab4b':
  Don't add cells to FocusLogic sparse matrix if they aren't focusable.
2015-10-22 01:12:49 +00:00
Tony Wickham df315180f0 Don't add cells to FocusLogic sparse matrix if they aren't focusable.
Previously, any child of ShortcutAndWidgetContainer was added to the
matrix, causing widgets (which aren't focusable) to be considered as
potential targets to gain focus when an arrow key was pressed. But if
the algorithm chose them, they couldn't take the focus so nothing
happened (i.e. the focus stayed on the app/folder it was on before).

Bug: 25126768
Change-Id: Id55fc310f7f58fb8795cce51dcefe4fd1210f788
2015-10-21 17:50:22 -07:00
Tony Wickham a98e210502 resolve merge conflicts of d5d7fa10af to ub-launcher3-master.
Change-Id: I324b1a9cd3c6dce1d5d3b14d3ef95f798e5bc243
2015-10-21 14:41:25 -07:00
Tony Wickham d5d7fa10af Merge "Hide the "Set Wallpaper" action bar when clicked." into ub-launcher3-burnaby-polish 2015-10-21 21:21:14 +00:00
Sunny Goyal 6f0f35806f Do not animate folder when it is closed while changing activity state
am: 935fca1857

* commit '935fca185741e51ab634e5df63c6369d2d55dba5':
  Do not animate folder when it is closed while changing activity state
2015-10-21 21:06:50 +00:00
Tony Wickham eb804b6aac Hide the "Set Wallpaper" action bar when clicked.
This already happens everywhere except for the case where an external
app such as Photos started the wallpaper picker. So not only is this
more consistent, it also prevents crashes and other potential issues
caused by clicking "Set Wallpaper" too many times.

Bug: 25026717

Change-Id: I63c6a0ce68656e6e68094e88074a836d8c1034f9
2015-10-21 21:01:54 +00:00
Sunny Goyal 935fca1857 Do not animate folder when it is closed while changing activity state
Bug: 21733536
Change-Id: I36aa3041b9300c917e320b511e00a1721e44f854
2015-10-21 13:42:36 -07:00
Tony Wickham eef443248a Set search bar height before setting up views in Launcher.
This ensures that the QSB widget options are set correctly the first
time they are used.

Bug: 24704753
Change-Id: I2bb13ff012b6f13ca076deed61f0b08a7037e2fa
2015-10-21 12:20:31 -07:00
Geoff Mendal b644780148 Import translations. DO NOT MERGE am: 6ce85953ac -s ours
am: 56070d4b67  -s ours

* commit '56070d4b67490b371fa0839997aaddac46e1758a':
  Import translations. DO NOT MERGE
2015-10-21 15:58:40 +00:00
Geoff Mendal 56070d4b67 Import translations. DO NOT MERGE
am: 6ce85953ac  -s ours

* commit '6ce85953acf0399965c6c8a75f5e6eea5a643678':
  Import translations. DO NOT MERGE
2015-10-21 15:54:05 +00:00
Geoff Mendal cf1c119f93 Import translations. DO NOT MERGE
am: 8a9f7abcf1  -s ours

* commit '8a9f7abcf169e0dbd38e8ea4be9e1229f8f71488':
  Import translations. DO NOT MERGE
2015-10-21 15:53:42 +00:00
Geoff Mendal 5d17d48f61 Import translations. DO NOT MERGE
Change-Id: I24307dd5e2545f212c8be8cf6c1af303530ac051
Auto-generated-cl: translation import
2015-10-21 08:04:52 -07:00
Geoff Mendal 8a9f7abcf1 Import translations. DO NOT MERGE
Change-Id: I4f645e8f071559ad56ee7963934f1039b06d6e96
Auto-generated-cl: translation import
2015-10-21 08:03:43 -07:00
Geoff Mendal 6ce85953ac Import translations. DO NOT MERGE
Change-Id: I1cea6130293678ef0d5da961d11428f14e62ee25
Auto-generated-cl: translation import
2015-10-21 08:02:37 -07:00
Sunny Goyal cd32035203 Merge "Fixing disabled icon getting changed back to normal state on long press" into ub-launcher3-burnaby-polish
am: 5c6f99e290

* commit '5c6f99e29077aea5ab946e2ec30a5705e95a822b':
  Fixing disabled icon getting changed back to normal state on long press
2015-10-21 00:21:47 +00:00
Sunny Goyal 5c6f99e290 Merge "Fixing disabled icon getting changed back to normal state on long press" into ub-launcher3-burnaby-polish 2015-10-21 00:18:25 +00:00
Tony Wickham 0b9aec98f4 Fix regression where keyboard couldn\'t switch between workspace pages.
am: c2bc0ef1c3

* commit 'c2bc0ef1c313698fd931fc84ec2f11882c38cdba':
  Fix regression where keyboard couldn't switch between workspace pages.
2015-10-20 23:49:58 +00:00
Tony Wickham c2bc0ef1c3 Fix regression where keyboard couldn't switch between workspace pages.
Bug: 25122302
Change-Id: Id1d7628753ce7ef37af50e8594e541dcb6bea13e
2015-10-20 16:24:53 -07:00
Sunny Goyal cd5b7f9fc6 Fixing disabled icon getting changed back to normal state on long press
Change-Id: I4f35c1cbecfef7891f8b1187ba3be0af695d4fd5
2015-10-20 15:52:48 -07:00
Sunny Goyal dc4fd457bb Fixing ConcurrentModificationException in tests am: ec7c9178dd
am: 93229c40bc

* commit '93229c40bc1cf31c9864a6e4948b8479790345bc':
  Fixing ConcurrentModificationException in tests
2015-10-20 18:24:07 +00:00
Sunny Goyal 93229c40bc Fixing ConcurrentModificationException in tests
am: ec7c9178dd

* commit 'ec7c9178dd1f17cf8479acd4e0b4575a91cfb255':
  Fixing ConcurrentModificationException in tests
2015-10-20 18:05:22 +00:00