dji-sdk / Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
Other
154 stars 109 forks source link

Setting Max Altitude with a decimal point crashes the app #146

Open andrewdittmer opened 2 years ago

andrewdittmer commented 2 years ago

If a user attempts to set max altitude and enters a decimal point, although the text input doesn't show the decimal point, if they press "Done" the app crashes instead of handling it gracefully.

Crash happens in dji.ux.panel.PreFlightCheckListPanel in verifyAndSetMaxAltitude

NumberFormatException java.lang.Integer in parseInt For input string: "2.00"

Tested on Google Pixel 4a with SDK 4.16.2