From 218d64bd51699a04173fd09876e88a8326471043 Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Mon, 29 Jun 2015 13:27:24 -0700 Subject: [PATCH] Fixing a crash introduced by my previous CL. I didn't notice that method deleteItem(View) is used via reflection. Restoring its (unused) parameter, which is needed for reflection, but keeping a better name deleteSelectedItems. Actually, we have a problem that click handlers like this one are also used as helper methods for other handlers, where View parameter is unnecessary, but I don't think it's worth fixing, so let's pass View and not use it. Bug: 21643257 Change-Id: Ibc0cd919706156ddc00890f322e51cb0774bc26b --- samples/Support7Demos/res/layout/animated_recycler_view.xml | 2 +- .../android/supportv7/widget/AnimatedRecyclerView.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/Support7Demos/res/layout/animated_recycler_view.xml b/samples/Support7Demos/res/layout/animated_recycler_view.xml index b719f1a3e..29a23e26a 100644 --- a/samples/Support7Demos/res/layout/animated_recycler_view.xml +++ b/samples/Support7Demos/res/layout/animated_recycler_view.xml @@ -44,7 +44,7 @@ android:layout_weight=".5" android:layout_width="0dip" android:layout_height="wrap_content" - android:onClick="deleteItem" + android:onClick="deleteSelectedItems" android:text="@string/delete_item"/>