Skip to content

Commit

Permalink
Replace deprecated View#getOwnerItemGroup
Browse files Browse the repository at this point in the history
According to the Javadoc, ViewGroup#getItemGroup should be called
directly on the owner.
  • Loading branch information
darxriggs committed Nov 5, 2018
1 parent b3238cf commit 0c2c8b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
Folder d;
if (context instanceof Folder) {
d = ((Folder) context);
} else if (context instanceof View && ((View) context).getOwnerItemGroup() instanceof Folder) {
d = (Folder) ((View) context).getOwnerItemGroup();
} else if (context instanceof View && ((View) context).getOwner().getItemGroup() instanceof Folder) {
d = (Folder) ((View) context).getOwner().getItemGroup();
} else {
return true;
}
Expand Down

0 comments on commit 0c2c8b4

Please sign in to comment.