Commit d85b30af authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

GSL is now invoked without needing to tap the key icon.

parent bc765e24
...@@ -61,7 +61,6 @@ class LoginFragment : Fragment(), LoginView { ...@@ -61,7 +61,6 @@ class LoginFragment : Fragment(), LoginView {
subscribeEditTexts() subscribeEditTexts()
setupOnClickListener() setupOnClickListener()
image_key.isVisible = hasCredentialsSupport()
analyticsManager.logScreenView(ScreenViewEvent.Login) analyticsManager.logScreenView(ScreenViewEvent.Login)
} }
...@@ -86,9 +85,8 @@ class LoginFragment : Fragment(), LoginView { ...@@ -86,9 +85,8 @@ class LoginFragment : Fragment(), LoginView {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
image_key.setOnClickListener { if (hasCredentialsSupport()) {
requestStoredCredentials() requestStoredCredentials()
image_key.isVisible = false
} }
} }
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12.65,10C11.83,7.67 9.61,6 7,6c-3.31,0 -6,2.69 -6,6s2.69,6 6,6c2.61,0 4.83,-1.67 5.65,-4H17v4h4v-4h2v-4H12.65zM7,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z" />
</vector>
\ No newline at end of file
...@@ -27,18 +27,6 @@ ...@@ -27,18 +27,6 @@
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/text_login" /> app:layout_constraintTop_toBottomOf="@+id/text_login" />
<ImageView
android:id="@+id/image_key"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:src="@drawable/ic_vpn_key_black_24dp"
android:tint="@color/colorDrawableTintGrey"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="@+id/text_username_or_email"
app:layout_constraintEnd_toEndOf="@+id/text_username_or_email"
app:layout_constraintTop_toTopOf="@+id/text_username_or_email" />
<EditText <EditText
android:id="@+id/text_password" android:id="@+id/text_password"
style="@style/Authentication.EditText" style="@style/Authentication.EditText"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment