File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2525import android .app .PendingIntent ;
2626import android .app .StatusBarManager ;
2727import android .app .UiModeManager ;
28- import android .content .ActivityNotFoundException ;
2928import android .content .BroadcastReceiver ;
3029import android .content .Context ;
3130import android .content .Intent ;
@@ -497,7 +496,8 @@ private void sendConfigurationAndStartDreamOrDockAppLocked(String category) {
497496 sendConfigurationLocked ();
498497
499498 // If we did not start a dock app, then start dreaming if supported.
500- if (!dockAppStarted && isScreenSaverEnabled () && isScreenSaverActivatedOnDock ()) {
499+ if (category != null && !dockAppStarted
500+ && isScreenSaverEnabled () && isScreenSaverActivatedOnDock ()) {
501501 Slog .i (TAG , "Activating dream while docked." );
502502 try {
503503 IDreamManager dreamManagerService = IDreamManager .Stub .asInterface (
You can’t perform that action at this time.
0 commit comments