summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apex/apex_manifest.json2
-rw-r--r--service/java/com/android/server/uwb/UwbSessionManager.java29
2 files changed, 15 insertions, 16 deletions
diff --git a/apex/apex_manifest.json b/apex/apex_manifest.json
index ef8be342..88baf791 100644
--- a/apex/apex_manifest.json
+++ b/apex/apex_manifest.json
@@ -1,5 +1,5 @@
{
"name": "com.android.uwb",
- "version": 330090000
+ "version": 339990000
}
diff --git a/service/java/com/android/server/uwb/UwbSessionManager.java b/service/java/com/android/server/uwb/UwbSessionManager.java
index 29a79fb0..76bae008 100644
--- a/service/java/com/android/server/uwb/UwbSessionManager.java
+++ b/service/java/com/android/server/uwb/UwbSessionManager.java
@@ -766,27 +766,26 @@ public class UwbSessionManager implements INativeUwbManager.SessionNotification
}
}
}
- }
- if (status != UwbUciConstants.STATUS_CODE_OK) {
+ if (status != UwbUciConstants.STATUS_CODE_OK) {
+ if (rangingReconfigureParams.getAction()
+ == MULTICAST_LIST_UPDATE_ACTION_ADD) {
+ mSessionNotificationManager.onControleeAddFailed(
+ uwbSession, status);
+ } else if (rangingReconfigureParams.getAction()
+ == MULTICAST_LIST_UPDATE_ACTION_DELETE) {
+ mSessionNotificationManager.onControleeRemoveFailed(
+ uwbSession, status);
+ }
+ return status;
+ }
if (rangingReconfigureParams.getAction()
== MULTICAST_LIST_UPDATE_ACTION_ADD) {
- mSessionNotificationManager.onControleeAddFailed(
- uwbSession, status);
+ mSessionNotificationManager.onControleeAdded(uwbSession);
} else if (rangingReconfigureParams.getAction()
== MULTICAST_LIST_UPDATE_ACTION_DELETE) {
- mSessionNotificationManager.onControleeRemoveFailed(
- uwbSession, status);
+ mSessionNotificationManager.onControleeRemoved(uwbSession);
}
- return status;
}
- if (rangingReconfigureParams.getAction()
- == MULTICAST_LIST_UPDATE_ACTION_ADD) {
- mSessionNotificationManager.onControleeAdded(uwbSession);
- } else if (rangingReconfigureParams.getAction()
- == MULTICAST_LIST_UPDATE_ACTION_DELETE) {
- mSessionNotificationManager.onControleeRemoved(uwbSession);
- }
-
status = mConfigurationManager.setAppConfigurations(
uwbSession.getSessionId(), param);
Log.d(TAG, "status: " + status);