OSDN Git Service

Move position of bundle parceling for PA extras.
authorTyler Gunn <tgunn@google.com>
Thu, 8 Oct 2015 16:46:23 +0000 (09:46 -0700)
committerTyler Gunn <tgunn@google.com>
Thu, 8 Oct 2015 16:46:23 +0000 (09:46 -0700)
Bug: 22806380
Change-Id: I9797ee0f6c9b5143ccd3417cfd5a7b631a4db480

telecomm/java/android/telecom/PhoneAccount.java

index 5c64168..abb8803 100644 (file)
@@ -584,9 +584,8 @@ public final class PhoneAccount implements Parcelable {
             out.writeInt(1);
             mIcon.writeToParcel(out, flags);
         }
-
-        out.writeBundle(mExtras);
         out.writeByte((byte) (mIsEnabled ? 1 : 0));
+        out.writeBundle(mExtras);
     }
 
     public static final Creator<PhoneAccount> CREATOR
@@ -628,8 +627,8 @@ public final class PhoneAccount implements Parcelable {
         } else {
             mIcon = null;
         }
-        mExtras = in.readBundle();
         mIsEnabled = in.readByte() == 1;
+        mExtras = in.readBundle();
     }
 
     @Override
@@ -645,7 +644,7 @@ public final class PhoneAccount implements Parcelable {
             sb.append(scheme)
                     .append(" ");
         }
-        sb.append(" Extras : ");
+        sb.append(" Extras: ");
         sb.append(mExtras);
         sb.append("]");
         return sb.toString();