kppanchal21 / enh

Automatically exported from code.google.com/p/enh
0 stars 0 forks source link

Force close when you press 'Del' #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter any value into the input bar
2. Place the cursor at the start of the input nar
3. Press the DEL button and the program will force close

What is the expected output? What do you see instead?

expected program to be running as per normal 

What version of the product are you using? On what operating system?

Latest version on android 1.6

Please provide any additional information below.

Original issue reported on code.google.com by psion...@gmail.com on 31 Dec 2009 at 5:22

GoogleCodeExporter commented 9 years ago
Issue 4 has been merged into this issue.

Original comment by elliott....@gmail.com on 31 Dec 2009 at 4:46

GoogleCodeExporter commented 9 years ago
Issue 6 has been merged into this issue.

Original comment by elliott....@gmail.com on 31 Dec 2009 at 4:46

GoogleCodeExporter commented 9 years ago
you're right. here's the stack trace of a crash from "adb logcat":

W/dalvikvm(13051): threadid=3: thread exiting with uncaught exception 
(group=0x4001b180)
E/AndroidRuntime(13051): Uncaught handler: thread main exiting due to uncaught 
exception
E/AndroidRuntime(13051): java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime(13051):    at java.lang.String.substring(String.java:1646)
E/AndroidRuntime(13051):    at 
org.jessies.mathdroid.Mathdroid.del(Mathdroid.java:324)
E/AndroidRuntime(13051):    at 
org.jessies.mathdroid.Mathdroid.onClick(Mathdroid.java:266)
E/AndroidRuntime(13051):    at android.view.View.performClick(View.java:2364)
E/AndroidRuntime(13051):    at android.view.View.onTouchEvent(View.java:4179)
E/AndroidRuntime(13051):    at 
android.widget.TextView.onTouchEvent(TextView.java:6540)
E/AndroidRuntime(13051):    at 
android.view.View.dispatchTouchEvent(View.java:3709)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime(13051):    at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(P
honeW
indow.java:1659)
E/AndroidRuntime(13051):    at 
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow
.java
:1107)
E/AndroidRuntime(13051):    at 
android.app.Activity.dispatchTouchEvent(Activity.java:2061)
E/AndroidRuntime(13051):    at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneW
indow
.java:1643)
E/AndroidRuntime(13051):    at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
E/AndroidRuntime(13051):    at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13051):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(13051):    at 
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(13051):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(13051):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(13051):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(13051):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(13051):    at dalvik.system.NativeStart.main(Native Method)

it's a simple mistake, so i'll get a fix out today.

Original comment by elliott....@gmail.com on 31 Dec 2009 at 5:15

GoogleCodeExporter commented 9 years ago
fixed by r365.

Original comment by elliott....@gmail.com on 31 Dec 2009 at 5:21

GoogleCodeExporter commented 9 years ago
fixed in version 1.9, uploaded to android market.

thanks for the clear bug report!

Original comment by elliott....@gmail.com on 31 Dec 2009 at 5:27

GoogleCodeExporter commented 9 years ago
ur welcome! keep up the good work! best calculator on the market :)

Original comment by psion...@gmail.com on 1 Jan 2010 at 10:09