Commit Graph
11704 Commits
Author SHA1 Message Date
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
Tony Wickham c1763b24fc resolve merge conflicts of 52040c2d51 to ub-launcher3-master.
Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
2015-10-23 12:29:44 -07: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
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
Sunny Goyal d249748abf Making all provider calls using content resolver.
This will allow us to easily move db creation out of onCreate

Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
2015-10-20 11:04:44 -07:00
Sunny Goyal f912beb2ee resolve merge conflicts of fe3db428ab to ub-launcher3-master.
Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
2015-10-20 10:37:15 -07:00
Sunny Goyal ec7c9178dd Fixing ConcurrentModificationException in tests
Change-Id: I7aabc62aa249dae979366ce2871604f5822f3139
2015-10-20 10:31:09 -07:00
Sunny Goyal fe3db428ab Merge "Refactoring getPreferenceKey method" into ub-launcher3-burnaby-polish 2015-10-20 17:17:08 +00:00
Sunny Goyal 38ac73a095 Using UiSelector instead of BySelector
am: ead4ab9655

* commit 'ead4ab9655683050a967864a3213d8782be0344c':
  Using UiSelector instead of BySelector
2015-10-20 17:02:33 +00:00
Sunny Goyal f725824fa2 Refactoring getPreferenceKey method
This method was returnning a constant and getting inlined by proguard.

Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
2015-10-20 09:41:04 -07:00
Sunny Goyal ead4ab9655 Using UiSelector instead of BySelector
Change-Id: Ie912cc7291a2533f6686bdb34e108be15ce244ac
2015-10-19 17:32:10 -07:00
Sunny Goyal b84046dacf Scaling down the icon before applying the user badge
> This also saves memory only create one new bitmap while loading instead of two

Bug: 25027252
Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f
2015-10-19 14:05:25 -07:00
Geoff Mendal 531b25c76b Import translations. DO NOT MERGE am: f58538672a -s ours
am: 705b4abd57  -s ours

* commit '705b4abd5793f2b989bca9c53220ffff3014a6ec':
  Import translations. DO NOT MERGE
2015-10-19 16:29:23 +00:00
Geoff Mendal 705b4abd57 Import translations. DO NOT MERGE
am: f58538672a  -s ours

* commit 'f58538672aaeb1d0d00a9c65a773f5e251003c3b':
  Import translations. DO NOT MERGE
2015-10-19 16:25:53 +00:00
Geoff Mendal f415b0033a Import translations. DO NOT MERGE
am: 8c23c2d2ba  -s ours

* commit '8c23c2d2ba4b7067afca5a28df2709450d29c5bf':
  Import translations. DO NOT MERGE
2015-10-19 16:25:53 +00:00
Geoff Mendal a667bb0aa7 Import translations. DO NOT MERGE
Change-Id: Iab62cd0b92f647d639aea075133a9168dd7ee462
Auto-generated-cl: translation import
2015-10-19 08:52:02 -07:00
Geoff Mendal 8c23c2d2ba Import translations. DO NOT MERGE
Change-Id: If930ef94a3abe3e27123d1fe3553b0a3a453ffec
Auto-generated-cl: translation import
2015-10-19 08:50:56 -07:00
Geoff Mendal f58538672a Import translations. DO NOT MERGE
Change-Id: Iee53921c75c785c7d73dd375b4e044761a5a7246
Auto-generated-cl: translation import
2015-10-19 08:49:51 -07:00
Sunny Goyal 6e0cb633bc Merge "Adding tests for rotation preference Updating the gradle file to run tests directly from AndroidStudio" into ub-launcher3-burnaby-polish
am: 917d434c5c

* commit '917d434c5ce93ae86b43a3825c9cbc3541843f5e':
  Adding tests for rotation preference Updating the gradle file to run tests directly from AndroidStudio
2015-10-17 00:51:18 +00:00