Merge changes from topic "presubmit-am-b4bd5ce7b4f34be08b452106d0393ce8" into sc-v2-dev-plus-aosp am: a0b428bbb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17195443 Change-Id: I666d36fedf230f91bf42405e7478e27c28fa1b3c
This commit is contained in:
@@ -275,6 +275,7 @@ public class SpatializerHelper {
|
|||||||
*/
|
*/
|
||||||
synchronized void reset(boolean featureEnabled) {
|
synchronized void reset(boolean featureEnabled) {
|
||||||
Log.i(TAG, "Resetting");
|
Log.i(TAG, "Resetting");
|
||||||
|
releaseSpat();
|
||||||
mState = STATE_UNINITIALIZED;
|
mState = STATE_UNINITIALIZED;
|
||||||
mSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
mSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
||||||
mCapableSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
mCapableSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
||||||
@@ -831,10 +832,10 @@ public class SpatializerHelper {
|
|||||||
try {
|
try {
|
||||||
mSpat.registerHeadTrackingCallback(null);
|
mSpat.registerHeadTrackingCallback(null);
|
||||||
mSpat.release();
|
mSpat.release();
|
||||||
mSpat = null;
|
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Can't set release spatializer cleanly", e);
|
Log.e(TAG, "Can't set release spatializer cleanly", e);
|
||||||
}
|
}
|
||||||
|
mSpat = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user