mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "checking if outline provider is null to handle rare NPE" into tm-qpr-dev
This commit is contained in:
@@ -326,7 +326,11 @@ public final class DigitalWellBeingToast {
|
||||
}
|
||||
|
||||
private void setBannerOutline() {
|
||||
mOldBannerOutlineProvider = mBanner.getOutlineProvider();
|
||||
// TODO(b\273367585) to investigate why mBanner.getOutlineProvider() can be null
|
||||
mOldBannerOutlineProvider = mBanner.getOutlineProvider() != null
|
||||
? mBanner.getOutlineProvider()
|
||||
: ViewOutlineProvider.BACKGROUND;
|
||||
|
||||
mBanner.setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
public void getOutline(View view, Outline outline) {
|
||||
|
||||
Reference in New Issue
Block a user