App crashes on inviting multiple voters
Describe the bug : App crashes When adding multiple voters in invite voters and then tapping invite voters button
After tapping on invite voters it goes to home fragments and then crashes.
Expected Behaviour : The app should not crash after invite sent sucessfully
Steps to reproduce it :
- Go to Election details
- Click on invite voters
- Add more than one voter
- Tap on invite voters and wait for it to go to home fragment and crash.
LogCat for the issue :
2021-03-26 00:29:29.342 11771-11771/org.aossie.agoraandroid E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.aossie.agoraandroid, PID: 11771
java.lang.IllegalStateException: ScrollView can host only one direct child
at android.widget.ScrollView.addView(ScrollView.java:361)
at com.google.android.material.snackbar.BaseTransientBottomBar.showView(BaseTransientBottomBar.java:734)
at com.google.android.material.snackbar.BaseTransientBottomBar$1.handleMessage(BaseTransientBottomBar.java:243)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:245)
at android.app.ActivityThread.main(ActivityThread.java:8004)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
Screenshots of the issue : 21-03-25-22-35-59__1_
Smartphone Info :
Device | Oneplus Nord |
Android Version | Android 11 |
Would you like to work on the issue? Yes, please assign it to me