commit | 05b1563db8caa38abf645c236a818c69d288ab70 | [log] [tgz] |
---|---|---|
author | Matías Hernández <matiashe@google.com> | Thu Feb 29 16:01:10 2024 +0100 |
committer | Matías Hernández <matiashe@google.com> | Thu Feb 29 16:01:10 2024 +0100 |
tree | 75f278c2a2ed47b355b38658e3fe245fac0fb507 | |
parent | 232835732639055663a03f3cbb789c9945e1f375 [diff] |
Don't apply the "dim wallpaper" effect if wallpaper is not supported On auto, getSystemService(WallpaperManager) returns a non-null but non-working service (DisabledWallpaperManager) that fails on each method call (this seems like a rather unusual pattern). We detect this by calling isWallpaperSupported() and, if false, we won't try to apply the effect. Bug: 327485783 Test: atest DefaultDeviceEffectsApplierTest Change-Id: I1be7c902f4ae63d0b6191d9fcb106691052cbc55