Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Done
-
Labels:
-
Story Points:3
Description
On viewing forms under incomplete form data with intent to delete.
When you hold to select the form to delete on part with the patients name, the application crashes and closes patient view sending you back to the main dashboard.
Selecting anywhere else out of the header with the patients name works ok.
As a user, I want to tab anywhere between patient name header and form details under Form/Incomplete Form Data so that I can continue to delete them without app being crashed.
Acceptance Criteria
- tab and hold anywhere between patient name header and form details under Form/Incomplete Form Data and continue to delete the selected incomplete form data.
Details on crash report, please see ACRA.
Stacktrace
java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to com.muzima.view.CheckedRelativeLayout
at com.muzima.adapters.forms.SectionedFormsAdapter$1.onLongClick(SectionedFormsAdapter.java:210)
at android.view.View.performLongClick(View.java:4819)
at android.view.View$CheckForLongPress.run(View.java:19840)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)