Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 907e9bc2 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge "SpatializerHelper: fix the null pointer exception occurred when create...

Merge "SpatializerHelper: fix the null pointer exception occurred when create spatializer" into main am: f9abcbd4 am: f85e1f83

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2836278



Change-Id: Ic9155454899526033ae70a65c05eeb0d15f3d8c3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 96f9d8b8 f85e1f83
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1013,6 +1013,11 @@ public class SpatializerHelper {
        if (mSpat == null) {
            mSpatCallback = new SpatializerCallback();
            mSpat = AudioSystem.getSpatializer(mSpatCallback);
            if (mSpat == null) {
                Log.e(TAG, "createSpat(): No Spatializer found");
                postReset();
                return;
            }
            try {
                //TODO: register heatracking callback only when sensors are registered
                if (mIsHeadTrackingSupported) {