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:
+4
-1
@@ -143,7 +143,10 @@ public class TextInputLayoutHelper extends TextInputLayout
|
|||||||
*/
|
*/
|
||||||
public void setHelperText(CharSequence text)
|
public void setHelperText(CharSequence text)
|
||||||
{
|
{
|
||||||
mHelperText.setText(text);
|
if (mHelperText != null)
|
||||||
|
{
|
||||||
|
mHelperText.setText(text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showHelper(boolean show)
|
private void showHelper(boolean show)
|
||||||
|
|||||||
Reference in New Issue
Block a user