Car user switching dialog taking more than 3 seconds am: 3629c607f0

am: b38ca0add7

Change-Id: I7e075de565860e4c34b21c24d08bdfdc923206cd
This commit is contained in:
Mayank Garg
2019-11-25 08:28:03 -08:00
committed by android-build-merger

View File

@@ -37,6 +37,7 @@ import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.android.internal.R;
@@ -65,7 +66,9 @@ final class CarUserSwitchingDialog extends UserSwitchingDialog {
setCancelable(false);
Resources res = getContext().getResources();
// Custom view due to alignment and font size requirements
getContext().setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog);
// TODO (b/145021634): disabled because it's delaying user switch by 3 seconds
// getContext()
// .setTheme(R.style.Theme_DeviceDefault_Light_Dialog_Alert_UserSwitchingDialog);
View view = LayoutInflater.from(getContext()).inflate(
R.layout.car_user_switching_dialog,
null);