You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since updating my support library dependencies to 24.2.0, I am encountering the following error when trying start my IssueReporterActivity subclass:
java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.support.design.widget.TextInputLayout
at com.heinrichreimersoftware.androidissuereporter.IssueReporterActivity.setGuestEmailRequired(IssueReporterActivity.java:298)
The error occurs when calling setGuestEmailRequired(true) in the IssueReporterActivity's onCreate() method. Omitting the method call prevents the error from occurring.
Everything was working fine on support v23.1.1, so it seems there was an internal change in TextInputEditText in the new version of the design support library?
Thanks again for your work, and please let me know if you need help with this.
I believe the easiest fix would be to add an ID to the enclosing TextInputLayout for the air_inputEmailTextInputEditText and use findViewById() to access it instead of casting inputEmail.getParent().
The text was updated successfully, but these errors were encountered:
Since updating my support library dependencies to
24.2.0
, I am encountering the following error when trying start myIssueReporterActivity
subclass:The error occurs when calling
setGuestEmailRequired(true)
in theIssueReporterActivity
'sonCreate()
method. Omitting the method call prevents the error from occurring.Everything was working fine on support v23.1.1, so it seems there was an internal change in
TextInputEditText
in the new version of the design support library?Thanks again for your work, and please let me know if you need help with this.
I believe the easiest fix would be to add an ID to the enclosing
TextInputLayout
for theair_inputEmail
TextInputEditText
and usefindViewById()
to access it instead of castinginputEmail.getParent()
.The text was updated successfully, but these errors were encountered: