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

Commit f9abcbd4 authored by Eric Laurent's avatar Eric Laurent Committed by Gerrit Code Review
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
parents baa658bc be075717
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -965,6 +965,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) {