OSDN Git Service

Prevent overflow in the AVD creation dialog
authorXavier Ducrohet <xav@android.com>
Sat, 20 Mar 2010 00:48:39 +0000 (17:48 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 26 Mar 2010 21:12:55 +0000 (14:12 -0700)
commit27d604b0dae72b0f5dfece494571a3dc6d0f0ed5
tree3ef5ca1d3f8bda3233aed475ba531797e283501f
parent47aea9ef83f30269b31c0b5133581a68d28bb536
Prevent overflow in the AVD creation dialog

Entering a sd card size too big would overflow
the int variable and revert to the message about
the SD Card being <9MB.

Fixed the overflow for normal values and added a check
on values too big (1TB+)

Bug: 2528357

Change-Id: I052e6ca20c4919ab621138250f21d8eaa7e1d01d
sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java