Description
Actual Behaviour
App crashes when degree is changed through text field.
Expected Behaviour
App should not crash and degree should change.
Steps to reproduce it
Open robotic arm and change the degree through text field and press done.
LogCat for the issue
java.lang.NumberFormatException: For input string: "5°"
at java.lang.Integer.parseInt(Integer.java:615)
at java.lang.Integer.valueOf(Integer.java:801)
at io.pslab.activity.RoboticArmActivity$14.onEditorAction(RoboticArmActivity.java:415)
at android.widget.TextView.onEditorAction(TextView.java:6923)
at com.android.internal.widget.EditableInputConnection.performEditorAction(EditableInputConnection.java:138)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:360)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:85)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
Screenshots of the issue
Would you like to work on the issue?
Yes.