add: notification listener service

This commit is contained in:
hyb1996
2017-10-31 00:07:45 +08:00
parent bfd6a0c40a
commit cbd2600c33
11 changed files with 255 additions and 60 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -15,7 +15,7 @@
<com.stardust.scriptdroid.ui.main.drawer.DrawerMenuGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/text_accessibility_service">
app:title="@string/text_service">
<com.stardust.scriptdroid.ui.main.drawer.DrawerMenuItem
android:id="@+id/accessibility_service"
@@ -35,6 +35,14 @@
app:title="@string/text_stable_mode"
app:with_switch="true"/>
<com.stardust.scriptdroid.ui.main.drawer.DrawerMenuItem
android:id="@+id/notification_service"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_ali_notification"
app:title="@string/text_notification_permission"
app:with_switch="true"/>
</com.stardust.scriptdroid.ui.main.drawer.DrawerMenuGroup>

View File

@@ -282,6 +282,8 @@
<string name="text_reset_succeed">重置成功</string>
<string name="text_cannot_read_file" formatted="true">无法读取文件: %s</string>
<string name="text_connected">已连接</string>
<string name="text_service">服务</string>
<string name="text_notification_permission">通知权限</string>
<string-array name="ad_showing_mode_keys">