Merge "Fix NPE when setting bubble bar bounds" into main

This commit is contained in:
Liran Binyamin authored and Android (Google) Code Review committed 2024-04-09 14:04:19 +00:00
commit 60d4e8d3b8
1 file changed
+3 -1
@@ -836,7 +836,9 @@ public class SystemUiProxy implements ISystemUiProxy, NavHandle {
*/
public void setBubbleBarBounds(Rect bubbleBarBounds) {
try {
mBubbles.setBubbleBarBounds(bubbleBarBounds);
if (mBubbles != null) {
mBubbles.setBubbleBarBounds(bubbleBarBounds);
}
} catch (RemoteException e) {
Log.w(TAG, "Failed call setBubbleBarBounds");
}