summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server
diff options
context:
space:
mode:
Diffstat (limited to 'services/java/com/android/server')
-rw-r--r--services/java/com/android/server/status/DisableRecords.java17
-rw-r--r--services/java/com/android/server/status/StatusBarManagerService.java3
2 files changed, 19 insertions, 1 deletions
diff --git a/services/java/com/android/server/status/DisableRecords.java b/services/java/com/android/server/status/DisableRecords.java
new file mode 100644
index 0000000..ade8328
--- /dev/null
+++ b/services/java/com/android/server/status/DisableRecords.java
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2007 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
diff --git a/services/java/com/android/server/status/StatusBarManagerService.java b/services/java/com/android/server/status/StatusBarManagerService.java
index f4678c3..152f0a3 100644
--- a/services/java/com/android/server/status/StatusBarManagerService.java
+++ b/services/java/com/android/server/status/StatusBarManagerService.java
@@ -269,7 +269,8 @@ public class StatusBarManagerService extends IStatusBarService.Stub
// ================================================================================
public IBinder addNotification(StatusBarNotification notification) {
synchronized (mNotifications) {
- IBinder key = mNotifications.add(notification);
+ IBinder key = new Binder();
+ mNotifications.add(key, notification);
// TODO: tell mBar
return key;
}