Fix Copy'n'paste mistake

This commit is contained in:
mar-v-in 2015-01-06 13:24:39 +01:00
parent 53bf6bc84b
commit 8eb274e499

View File

@ -52,6 +52,7 @@ public class SafeParcelUtil {
}
clazz = clazz.getSuperclass();
}
clazz = object.getClass();
int end = SafeParcelReader.readStart(parcel);
while (parcel.dataPosition() < end) {
int position = SafeParcelReader.readSingleInt(parcel);
@ -170,7 +171,7 @@ public class SafeParcelUtil {
if (clazz == float.class || clazz == Float.class)
return Float;
if (clazz == double.class || clazz == Double.class)
return Float;
return Double;
if (clazz == java.lang.String.class)
return String;
throw new RuntimeException("Type is not yet usable with SafeParcelUtil: " + clazz);