title: Email appear as null
body: <p>I've the below <code>XML</code> form for password reset, where the user enter the email and click submit:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".ui.main.LoginFragment"&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="@color/colorPrimaryDark"
          android:gravity="center"
          android:orientation="vertical"
          android:padding="@dimen/activity_horizontal_margin"&gt;
  
      &lt;!-- TODO: Update blank fragment layout --&gt;
          &lt;TextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/hello_blank_fragment" /&gt;
  
          &lt;EditText                               // This is read as null!
              android:id="@+id/myEmail"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:ems="10"
              android:inputType="textEmailAddress" /&gt;
  
          &lt;Button
              android:id="@+id/reset"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Reset" /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>And in the fragment file, I've:</p>
  
  <pre><code>class ResetPasswordFragment : Fragment() {
      companion object {
          fun newInstance() = ResetPasswordFragment()
      }
  
      override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                                savedInstanceState: Bundle?): View {
          return inflater.inflate(R.layout.fragment_reset_password, container, false)
      }
  
      override fun onActivityCreated(savedInstanceState: Bundle?) {
          super.onActivityCreated(savedInstanceState)
  
          val auth = FirebaseAuth.getInstance()
  
          val email = myEmail.text.toString().trim()   // This is null!
  
          reset.setOnClickListener {
              Toast.makeText(context, "Email entered is: $email", Toast.LENGTH_SHORT).show()
  
              auth.sendPasswordResetEmail(email)
                      .addOnCompleteListener({ task -&gt;
                          if (task.isSuccessful) {
                              Toast.makeText(context, "We have sent you instructions to reset your password!", Toast.LENGTH_SHORT).show()
                          } else {
                              Toast.makeText(context, "Failed to send reset email!: ${task.exception}", Toast.LENGTH_SHORT).show()
                          }
                      })
          }
      }
  }
  </code></pre>
  
  <p>In the <code>val email = myEmail.text.toString().trim()</code> it gives <code>null</code>, while <code>val email = myEmail.text</code> is showing the correct input as <code>Editable</code>, but this not accepted by the <code>auth.sendPasswordResetEmail(email)</code> as the input is required to be <code>String</code></p>