From a0c56fe93925d20d9c0b830b9664699ce557e78c Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 20 May 2010 10:21:52 -0700 Subject: Checkpoint. Doesn't build. Change-Id: I92e4d539ea71af9e22ced02cbdee7fbd456b7971 --- .../java/com/android/server/status/DisableRecords.java | 17 +++++++++++++++++ .../android/server/status/StatusBarManagerService.java | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 services/java/com/android/server/status/DisableRecords.java (limited to 'services/java/com/android/server') 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; } -- cgit v1.1