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 Dec 18, 2018
1 parent 082df18 commit 629f149
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 629f149

Please sign in to comment.