Compare commits

...

3 Commits

Author SHA1 Message Date
2f0739d6bc add BSD-2-Clause license 2025-05-13 12:33:58 -04:00
01da581f75 add readme with initial setup notes 2025-05-12 14:19:40 -04:00
4a499abfbd add better icon for notification 2025-05-12 14:19:37 -04:00
4 changed files with 33 additions and 1 deletions

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
Copyright (c) 2025 Joel Beckmeyer and contributors
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

6
README.md Normal file
View File

@@ -0,0 +1,6 @@
# AutoBrightnessDelay
Add a 500ms delay after screen turning on before Auto/Adaptive Brightness is
enabled.
### Notes
You will need to manually grant "Notifications" permission and also the
permission to "Modify system settings".

View File

@@ -57,7 +57,7 @@ class AutoBrightnessDelayService : Service() {
NOTIFICATION_ID,
NotificationCompat.Builder(this, CHANNEL_ID)
.setContentTitle("AutoBrightnessDelay running")
.setSmallIcon(android.R.drawable.ic_menu_view)
.setSmallIcon(R.drawable.brightness_auto)
.setOngoing(true)
.build(),
)

View File

@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
<path android:fillColor="@android:color/white" android:pathData="M10.85,12.65h2.3L12,9l-1.15,3.65zM20,8.69V4h-4.69L12,0.69 8.69,4H4v4.69L0.69,12 4,15.31V20h4.69L12,23.31 15.31,20H20v-4.69L23.31,12 20,8.69zM14.3,16l-0.7,-2h-3.2l-0.7,2H7.8L11,7h2l3.2,9h-1.9z"/>
</vector>