diff options
author | yueg <yueg@google.com> | 2018-03-21 12:14:04 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-21 13:01:22 -0700 |
commit | 7642b8011e00bf353504440754ffa3f3a7cd8f8c (patch) | |
tree | 8c1601b2c250506df8aaf94dad89b5df2fb277d0 /java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml | |
parent | ab661fe03bd570bf713e8f040784fba3a504ec9d (diff) |
Show error when finding location time out.
If we get no location data for emergency call, we used to show spinner forever. This change shows error after 5s with no data, but still tries to get location.
Test: LocationFragmentTest
PiperOrigin-RevId: 189946803
Change-Id: Iaa0b429eec806337b9ab9cae3ca95e737fc667bf
Diffstat (limited to 'java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml')
-rw-r--r-- | java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml b/java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml index b1601f9fd..d20e32b3f 100644 --- a/java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml +++ b/java/com/android/incallui/calllocation/impl/res/layout/location_fragment.xml @@ -130,4 +130,34 @@ </GridLayout> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/location_error_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:orientation="vertical"> + + <ImageView + android:id="@+id/location_error_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="32dp" + android:layout_marginBottom="12dp" + android:layout_gravity="center_horizontal" + android:src="@drawable/quantum_ic_error_outline_vd_theme_36" + android:tint="#C53929"/> + + <TextView + android:id="@+id/location_error_text" + style="@style/LocationErrorTextStyle" + android:layout_width="match_parent" + android:layout_height="24sp" + android:layout_marginBottom="20dp" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:gravity="center" + android:text="@string/location_error"/> + + </LinearLayout> + </ViewAnimator> |