From bcd2e30f506f4099bc925361a2d350f8bc188c5a Mon Sep 17 00:00:00 2001 From: littledot5566 Date: Tue, 28 Apr 2020 11:14:58 -0400 Subject: [PATCH] Add a getter to EpoxyViewHolder.getHolder(). (#952) --- .../src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java b/epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java index 6c44d10a69..ec9ac65e4b 100644 --- a/epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java +++ b/epoxy-adapter/src/main/java/com/airbnb/epoxy/EpoxyViewHolder.java @@ -115,6 +115,11 @@ public EpoxyModel getModel() { return epoxyModel; } + public EpoxyHolder getHolder() { + assertBound(); + return epoxyHolder; + } + private void assertBound() { if (epoxyModel == null) { throw new IllegalStateException("This holder is not currently bound.");