Bug: 36718342
1.The flicker was also happening partially because notifyWidgetProviderChanged
callback also made the entire widget list to update in addition to
packageManager update.
2. Now that adapter calls notifyItemInserted, Removed, the recycler
view uses it's internal animation to elegantly move items or insert
them. (added benefit!)
3. Added tests for WidgetsListAdapterTest
$ adb shell am instrument -w -e class com.android.launcher3.widget.WidgetsListAdapterTest com.google.android.apps.nexuslauncher.tests/android.support.test.runner.AndroidJUnitRunner
com.android.launcher3.widget.WidgetsListAdapterTest:.
Time: 0.337
OK (6 test)
Change-Id: I0818d546532631bf889fae560118decff64ec5a4
Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
This ensures that the uninstall activity will finish only after
the task is completed.
We initially assumed that this was always the case, but in Android
Go the uninstall activity finishes before the uninstall is completed.
Bug: 64033585
Change-Id: Ic5d8dd99e2fecd0c9cb24093ee66668b4b38cb1a
caused reflection to break. The new api method is available in both
DR and MR1.
Bug: 64908004
Bug: 64839046
Change-Id: I812c320e2c817aea8264de8764e33ad218b591c5
* changes:
[automerger] Simplifying some package matching code by using common itemInfo mathcher am: 6e13dd3aa8
Simplifying some package matching code by using common itemInfo mathcher
When deferring bindAllApplications, the same global state was being
used to store the pending state. This global state was being cleared
in one deferred execution after a second execution was scheduled, causing
the second execution to get null/wrong values.
Instead using independent local/anonymous class to maintian states, so that
it does not get cleared by other methods.
Bug: 64789383
Change-Id: I78477a110fe663603b4bdeb7d1fac7c4ce0831a2
Also fixing the navbar to dark theme when a black bar is drawn behind nav bar
Fixing left/right margins not getting updated on lowRam device
when they change from non-zero value to 0
Bug: 64363693
Bug: 62547502
Change-Id: I4952ad2f564b71b39318350445f116a0f601a10f
Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.
Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
(cherry picked from commit 7dfabaa02b)
Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.
Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
The problem is that rowAppIndex is not being set when we swap in the
new predictions. So when we call AllAppsRecyclerView#getCurrentScrollY,
the "item.rowAppIndex == 0" clause returns true for every predicted app,
which results in a larger than expected value.
Bug: 64628968
Change-Id: I37ca660522b5a99666de2ea0b9c0aa8cd3732aca
The padding was added to the hotseat, but not to the workspace screens.
Only affects landscape where bottomPadding != 0.
Bug: 63996463
Change-Id: I8be0e36128963a1856d2effa76fdb2a6cfd966a8
The hotseat never has text, so we remove the icon drawable padding
from the height calculation.
This allows the items in the hotseat to be centered vertically
properly.
Bug: 63996463
Change-Id: Ie0c5706ae6edeafae321ca024c066439d40ca237