OSDN Git Service

Add Night Light to Settings widget
authorSean Stout <sstout@google.com>
Wed, 21 Jun 2017 01:07:22 +0000 (18:07 -0700)
committerSean Stout <sstout@google.com>
Wed, 21 Jun 2017 16:24:34 +0000 (16:24 +0000)
Night Light now appears as an option when placing the Settings widget

Bug: 62823114
Test: manual - Place Settings widget on launcher
Change-Id: I521980ec63b2e9034f44d2de7796dcb64f870b06

AndroidManifest.xml

index b2a8dd1..a02185e 100644 (file)
                 android:enabled="@*android:bool/config_nightDisplayAvailable"
                 android:icon="@drawable/ic_settings_night_display"
                 android:taskAffinity="">
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <category android:name="com.android.settings.SHORTCUT" />
+            </intent-filter>
             <intent-filter android:priority="1">
                 <action android:name="android.settings.NIGHT_DISPLAY_SETTINGS" />
                 <category android:name="android.intent.category.DEFAULT" />