Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88125351 authored by Andreas Huber's avatar Andreas Huber Committed by android-build SharedAccount
Browse files

Add a missing break; to restore old functionality and not turn off the screen...

Add a missing break; to restore old functionality and not turn off the screen after 30secs regardless of system preference.

Change-Id: Ib71113a3bc5aa5fdc088ab4ac3627352499ad3fa
parent b9f1c70a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1044,6 +1044,7 @@ class PowerManagerService extends IPowerManager.Stub
                        case SCREEN_DIM:
                            if (mDimDelay >= 0) {
                                when = now + mDimDelay;
                                break;
                            } else {
                                Slog.w(TAG, "mDimDelay=" + mDimDelay + " while trying to dim");
                            }
@@ -1052,6 +1053,9 @@ class PowerManagerService extends IPowerManager.Stub
                                when = now + mScreenOffDelay;
                            }
                            break;
                        default:
                            when = now;
                            break;
                    }
                } else {
                    override: {