Compare commits
2 Commits
3cca2be73c
...
01da581f75
Author | SHA1 | Date | |
---|---|---|---|
01da581f75 | |||
4a499abfbd |
6
README.md
Normal file
6
README.md
Normal 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".
|
@ -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(),
|
||||
)
|
||||
|
5
app/src/main/res/drawable/brightness_auto.xml
Normal file
5
app/src/main/res/drawable/brightness_auto.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user