Merge "Fix IllegalArgumentException from RecyclerView in PanelFragment" into tm-qpr-dev am: 0b0d8ace66
am: 95c7c63fc1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20715247 Change-Id: I06a8740c4ebb5114f9248b68e069f075e56111de Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -214,6 +214,8 @@ public class PanelFragment extends Fragment {
|
|||||||
// Make the panel layout gone here, to avoid janky animation when updating from old panel.
|
// Make the panel layout gone here, to avoid janky animation when updating from old panel.
|
||||||
// We will make it visible once the panel is ready to load.
|
// We will make it visible once the panel is ready to load.
|
||||||
mPanelSlices.setVisibility(View.GONE);
|
mPanelSlices.setVisibility(View.GONE);
|
||||||
|
// Remove the animator to avoid a RecyclerView crash.
|
||||||
|
mPanelSlices.setItemAnimator(null);
|
||||||
|
|
||||||
final Bundle arguments = getArguments();
|
final Bundle arguments = getArguments();
|
||||||
final String callingPackageName =
|
final String callingPackageName =
|
||||||
|
Reference in New Issue
Block a user