Skip to content

Commit

Permalink
- return a copy of the current stack, not the actualy object
Browse files Browse the repository at this point in the history
  • Loading branch information
ncapdevi committed Jan 23, 2017
1 parent a83238f commit 9fcbe03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -604,14 +604,14 @@ public int getSize() {
}

/**
* Get the current stack that is being displayed
* Get a copy of the current stack that is being displayed
*
* @return Current stack
*/
@CheckResult
@NonNull
public Stack<Fragment> getCurrentStack() {
return mFragmentStacks.get(mSelectedTabIndex);
return (Stack<Fragment>) mFragmentStacks.get(mSelectedTabIndex).clone();
}

/**
Expand Down

0 comments on commit 9fcbe03

Please sign in to comment.