Merge "Fragement, or Fragment: that is the question"

This commit is contained in:
Romain Guy
2013-09-30 22:48:44 +00:00
committed by Gerrit Code Review

View File

@@ -569,12 +569,12 @@ final class FragmentManagerImpl extends FragmentManager {
return null; return null;
} }
if (index >= mActive.size()) { if (index >= mActive.size()) {
throwException(new IllegalStateException("Fragement no longer exists for key " throwException(new IllegalStateException("Fragment no longer exists for key "
+ key + ": index " + index)); + key + ": index " + index));
} }
Fragment f = mActive.get(index); Fragment f = mActive.get(index);
if (f == null) { if (f == null) {
throwException(new IllegalStateException("Fragement no longer exists for key " throwException(new IllegalStateException("Fragment no longer exists for key "
+ key + ": index " + index)); + key + ": index " + index));
} }
return f; return f;