dDisplay better error message if authentication fails on first run. Change lineHeight to lineSpacingMultiplier.

This commit is contained in:
Akinwale Ariwodola 2020-05-24 21:27:49 +01:00
parent f5dc4fa4e7
commit 053ebbd70b
4 changed files with 8 additions and 4 deletions

View file

@ -97,7 +97,8 @@ public class FirstRunActivity extends AppCompatActivity {
}
private void handleAuthenticationFailed() {
Toast.makeText(this, "Authentication failed.", Toast.LENGTH_LONG).show();
findViewById(R.id.welcome_progress_bar).setVisibility(View.GONE);
((TextView) findViewById(R.id.welcome_wait_text)).setText(R.string.startup_failed);
}
private void authenticate() {

View file

@ -14,6 +14,7 @@
android:id="@+id/welcome_wait_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="24dp"
android:visibility="gone">
<LinearLayout
android:layout_width="wrap_content"
@ -23,14 +24,16 @@
android:id="@+id/welcome_progress_bar"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginRight="8dp"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/welcome_wait_text"
android:fontFamily="@font/inter"
android:layout_marginLeft="8dp"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/welcome_please_wait"
android:lineSpacingMultiplier="1.2"
android:textColor="@color/white"
android:textFontWeight="300" />
</LinearLayout>

View file

@ -30,7 +30,7 @@
android:layout_marginLeft="8dp"
android:layout_toRightOf="@id/reward_driver_icon"
android:fontFamily="@font/inter"
android:lineHeight="18dp"
android:lineSpacingMultiplier="1.2"
android:textColor="@color/white"
android:textFontWeight="300"
android:textSize="14sp" />

View file

@ -53,7 +53,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:lineHeight="14dp"
android:lineSpacingMultiplier="1.2"
android:fontFamily="@font/inter"
android:ellipsize="end"
android:maxLines="8"