Make switching dialog full screen and change "Loading" text color.
Bug: 148318514 Bug: 111928877, 112242211 Test: Tested on device Change-Id: Iaa45b8e7581f2a19106a6e734432fe2cda661a33 (cherry picked from commit 88def57a6d97271013c0ca996950ff33939e7013)
This commit is contained in:
committed by
Mayank Garg
parent
74c9ad17c2
commit
c4808d9a4b
@@ -16,25 +16,22 @@
|
||||
-->
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:fitsSystemWindows="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/user_loading_avatar"
|
||||
android:layout_width="@dimen/car_fullscreen_user_pod_image_avatar_width"
|
||||
android:layout_height="@dimen/car_fullscreen_user_pod_image_avatar_height"
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
android:layout_centerHorizontal="true"/>
|
||||
|
||||
<TextView android:id="@+id/user_loading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/car_padding_4"
|
||||
android:textSize="@dimen/car_body1_size"
|
||||
android:textColor="@color/car_body1_light"
|
||||
android:textColor="@color/car_body1"
|
||||
android:layout_below="@id/user_loading_avatar"
|
||||
android:gravity="center"
|
||||
/>
|
||||
android:gravity="center"/>
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -30,7 +30,6 @@ import android.graphics.PorterDuff;
|
||||
import android.graphics.PorterDuffXfermode;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.UserManager;
|
||||
import android.provider.Settings;
|
||||
@@ -57,8 +56,6 @@ final class CarUserSwitchingDialog extends UserSwitchingDialog {
|
||||
String switchingToSystemUserMessage) {
|
||||
super(service, context, oldUser, newUser, aboveSystem, switchingFromSystemUserMessage,
|
||||
switchingToSystemUserMessage);
|
||||
|
||||
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user