Merge "Announce inattentive sleep warning for accessibility" into sc-dev

This commit is contained in:
Robert Horvath
2021-06-30 09:38:03 +00:00
committed by Android (Google) Code Review

View File

@@ -93,6 +93,8 @@ public class InattentiveSleepWarningView extends FrameLayout {
setAlpha(1f);
setVisibility(View.VISIBLE);
mWindowManager.addView(this, getLayoutParams(mWindowToken));
announceForAccessibility(
getContext().getString(R.string.inattentive_sleep_warning_message));
}
/**