diff options
author | Joe Onorato <joeo@android.com> | 2009-07-23 18:28:46 -0400 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-07-23 18:29:27 -0400 |
commit | 093d1a5a9754f680844b7a0f09476b15afcaf11f (patch) | |
tree | aefd35db13807a5c752c1409c8d963c341477aea /services/java | |
parent | eb176588e2d8e8d57f0250d3e90e8166dc7c00a7 (diff) | |
download | frameworks_base-093d1a5a9754f680844b7a0f09476b15afcaf11f.zip frameworks_base-093d1a5a9754f680844b7a0f09476b15afcaf11f.tar.gz frameworks_base-093d1a5a9754f680844b7a0f09476b15afcaf11f.tar.bz2 |
Revert "Have the notification service only have notifications diabled"
This reverts commit eb176588e2d8e8d57f0250d3e90e8166dc7c00a7.
Diffstat (limited to 'services/java')
-rw-r--r-- | services/java/com/android/server/NotificationManagerService.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 29ccac6..38fb7c9 100644 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -90,7 +90,7 @@ class NotificationManagerService extends INotificationManager.Stub private NotificationRecord mSoundNotification; private AsyncPlayer mSound; private boolean mSystemReady; - private int mDisabledNotifications; + private int mDisabledNotifications = StatusBarManager.DISABLE_NOTIFICATION_ALERTS; private NotificationRecord mVibrateNotification; private Vibrator mVibrator = new Vibrator(); @@ -368,15 +368,6 @@ class NotificationManagerService extends INotificationManager.Stub mStatusBarService = statusBar; statusBar.setNotificationCallbacks(mNotificationCallbacks); - // Don't start allowing notifications until the setup wizard has run once. - // After that, including subsequent boots, init with notifications turned on. - // This works on the first boot because the setup wizard will toggle this - // flag at least once and we'll go back to 0 after that. - if (0 != Settings.Secure.getInt(mContext.getContentResolver(), - Settings.Secure.DEVICE_PROVISIONED, 0)) { - mDisabledNotifications = AudioManager.STREAM_NOTIFICATION; - } - // register for battery changed notifications IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_BATTERY_CHANGED); |