android: Fix null pointer dereference in TextInputLayoutHelper
The AndroidX/Material version of TextInputLayout actually supports a helper text, but it is always shown, so we continue to use our version.
This commit is contained in:
1 parent
9a305b7cbe
commit
8af50736e1
1 file changed
+4
-1
+4
-1
@@ -143,7 +143,10 @@ public class TextInputLayoutHelper extends TextInputLayout
|
||||
*/
|
||||
public void setHelperText(CharSequence text)
|
||||
{
|
||||
mHelperText.setText(text);
|
||||
if (mHelperText != null)
|
||||
{
|
||||
mHelperText.setText(text);
|
||||
}
|
||||
}
|
||||
|
||||
private void showHelper(boolean show)
|
||||
|
||||
Reference in new issue
Block a user