Fix off-by-one issue when removing from Iterator

MapCollections' iterator removes the preceding element
which causes IndexOutOfBoundsExceptions to be thrown
when removing the first element while iterating.

Copied from frameworks/base/core/java/android/util/MapCollections.java

bug:11477476
Change-Id: I3ea1dc5035aa1675336f60e014d9dcc22c4df065
diff --git a/v4/java/android/support/v4/util/MapCollections.java b/v4/java/android/support/v4/util/MapCollections.java
index 051e3b6..5ef5410 100644
--- a/v4/java/android/support/v4/util/MapCollections.java
+++ b/v4/java/android/support/v4/util/MapCollections.java
@@ -95,10 +95,10 @@
             if (!mEntryValid) {
                 throw new IllegalStateException();
             }
+            colRemoveAt(mIndex);
             mIndex--;
             mEnd--;
             mEntryValid = false;
-            colRemoveAt(mIndex);
         }
 
         @Override