GlobalActions: Add isReboot as a param for ShutdownUi.

Test: atest ShutdownUiTest; atest ShutdownUiGoogleTest
Bug: 283219108
Change-Id: I8e555e417f62f58fd6d6efd52f43f7493524fc89
This commit is contained in:
Alison Cichowlas
2023-05-24 09:09:55 -04:00
parent 457ecf8ecb
commit 79f6f8645c

View File

@@ -98,7 +98,7 @@ public class ShutdownUi {
window.setBackgroundDrawable(background);
window.setWindowAnimations(com.android.systemui.R.style.Animation_ShutdownUi);
d.setContentView(getShutdownDialogContent());
d.setContentView(getShutdownDialogContent(isReboot));
d.setCancelable(false);
int color;
@@ -129,7 +129,12 @@ public class ShutdownUi {
d.show();
}
public int getShutdownDialogContent() {
/**
* Returns the layout resource to use for UI while shutting down.
* @param isReboot Whether this is a reboot or a shutdown.
* @return
*/
public int getShutdownDialogContent(boolean isReboot) {
return R.layout.shutdown_dialog;
}