fix: notification service label is not built app label

This commit is contained in:
hyb1996
2018-01-24 17:35:18 +08:00
parent c93c27fcaa
commit 2f987305cd
4 changed files with 21 additions and 10 deletions

View File

@@ -8,8 +8,8 @@ android {
applicationId "com.stardust.scriptdroid" applicationId "com.stardust.scriptdroid"
minSdkVersion 17 minSdkVersion 17
targetSdkVersion 23 targetSdkVersion 23
versionCode 240 versionCode 242
versionName "3.0.0 Alpha40" versionName "3.0.0 Alpha42"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
ndk { ndk {

View File

@@ -198,6 +198,15 @@
android:resource="@xml/accessibility_service_config"/> android:resource="@xml/accessibility_service_config"/>
</service> </service>
<service
android:name="com.stardust.notification.NotificationListenerService"
android:label="@string/_app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService"/>
</intent-filter>
</service>
<receiver android:name=".external.widget.ScriptWidget"> <receiver android:name=".external.widget.ScriptWidget">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/> <action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>

View File

@@ -21,14 +21,7 @@
android:taskAffinity="com.stardust.autojs.runtime.api.image.ScreenCaptureRequestActivity" android:taskAffinity="com.stardust.autojs.runtime.api.image.ScreenCaptureRequestActivity"
android:theme="@style/AppTheme.Transparent"/> android:theme="@style/AppTheme.Transparent"/>
<service
android:name="com.stardust.notification.NotificationListenerService"
android:label="@string/_app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService"/>
</intent-filter>
</service>
</application> </application>

View File

@@ -39,6 +39,15 @@
android:resource="@xml/accessibility_service_config"/> android:resource="@xml/accessibility_service_config"/>
</service> </service>
<service
android:name="com.stardust.notification.NotificationListenerService"
android:label="inrt"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService"/>
</intent-filter>
</service>
</application> </application>
</manifest> </manifest>