mirror of
https://github.com/moparisthebest/android_external_SafeParcel
synced 2024-12-04 06:22:17 -05:00
Fix Copy'n'paste mistake
This commit is contained in:
parent
53bf6bc84b
commit
8eb274e499
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user