Replace for loops with foreach
This commit is contained in:
parent
527c7ec54e
commit
42bcb62d2c
2 changed files with 5 additions and 5 deletions
|
|
@ -203,8 +203,8 @@ public abstract class CustomFragmentStatePagerAdapter extends android.support.v4
|
|||
mSavedState.clear();
|
||||
mFragments.clear();
|
||||
if (fss != null) {
|
||||
for (int i = 0; i < fss.length; i++) {
|
||||
mSavedState.add((Fragment.SavedState) fss[i]);
|
||||
for (Parcelable fs : fss) {
|
||||
mSavedState.add((Fragment.SavedState) fs);
|
||||
}
|
||||
}
|
||||
Iterable<String> keys = bundle.keySet();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue