commit | c41fb6baf3a5270da892672833e4dfc664d93b8a | [log] [tgz] |
---|---|---|
author | Vinay Joglekar <vinayjoglekar@google.com> | Wed Aug 28 14:38:55 2024 +0000 |
committer | Vinay Joglekar <vinayjoglekar@google.com> | Wed Aug 28 15:04:19 2024 +0000 |
tree | 6b077cf74d5f3a8405745e56c58dd93a0112dbc3 | |
parent | 4fd9449d642c71355f004a48e001f52f93a3d193 [diff] |
(1/2) Fix NPE for title description broken by ag/28991306. It can be nullable initially before its set. Test: Manual Bug: 345789862 Flag: EXEMPT bugfix Change-Id: I6c26d10a142e8a5f132d47c0559e6b23a1968bd2
diff --git a/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.kt b/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.kt index 731b008..0ab36c9 100644 --- a/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.kt +++ b/quickstep/src/com/android/quickstep/views/DigitalWellBeingToast.kt
@@ -257,7 +257,7 @@ task: Task, appUsageLimitTimeMs: Long, appRemainingTimeMs: Long - ): String = + ): String? = if (appUsageLimitTimeMs >= 0 && appRemainingTimeMs >= 0) container .asContext()