dDisplay better error message if authentication fails on first run. Change lineHeight to lineSpacingMultiplier.
This commit is contained in:
parent
f5dc4fa4e7
commit
053ebbd70b
4 changed files with 8 additions and 4 deletions
|
@ -97,7 +97,8 @@ public class FirstRunActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleAuthenticationFailed() {
|
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() {
|
private void authenticate() {
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
android:id="@+id/welcome_wait_container"
|
android:id="@+id/welcome_wait_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:padding="24dp"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -23,14 +24,16 @@
|
||||||
android:id="@+id/welcome_progress_bar"
|
android:id="@+id/welcome_progress_bar"
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
|
android:layout_marginRight="8dp"
|
||||||
android:layout_gravity="center_vertical"/>
|
android:layout_gravity="center_vertical"/>
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/welcome_wait_text"
|
||||||
android:fontFamily="@font/inter"
|
android:fontFamily="@font/inter"
|
||||||
android:layout_marginLeft="8dp"
|
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/welcome_please_wait"
|
android:text="@string/welcome_please_wait"
|
||||||
|
android:lineSpacingMultiplier="1.2"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textFontWeight="300" />
|
android:textFontWeight="300" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
android:layout_marginLeft="8dp"
|
android:layout_marginLeft="8dp"
|
||||||
android:layout_toRightOf="@id/reward_driver_icon"
|
android:layout_toRightOf="@id/reward_driver_icon"
|
||||||
android:fontFamily="@font/inter"
|
android:fontFamily="@font/inter"
|
||||||
android:lineHeight="18dp"
|
android:lineSpacingMultiplier="1.2"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textFontWeight="300"
|
android:textFontWeight="300"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:lineHeight="14dp"
|
android:lineSpacingMultiplier="1.2"
|
||||||
android:fontFamily="@font/inter"
|
android:fontFamily="@font/inter"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="8"
|
android:maxLines="8"
|
||||||
|
|
Loading…
Reference in a new issue