OSDN Git Service

Add ticker text for network logging notification
authorphweiss <phweiss@google.com>
Tue, 10 Jan 2017 18:31:07 +0000 (19:31 +0100)
committerPhilipp Weiß <phweiss@google.com>
Wed, 11 Jan 2017 15:04:00 +0000 (15:04 +0000)
Set ticker text to title for accessibility.

Bug:31207965
Test: manual

Change-Id: I0b78f9e6464dd470b74e0db97813623b335835d9
(cherry picked from commit d4a54bbfd1902dccb0e4de03f15bfbbba50b9531)

services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java

index cf37c71..d672e37 100644 (file)
@@ -9597,6 +9597,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                 .setSmallIcon(R.drawable.ic_qs_network_logging)
                 .setContentTitle(mContext.getString(R.string.network_logging_notification_title))
                 .setContentText(mContext.getString(R.string.network_logging_notification_text))
+                .setTicker(mContext.getString(R.string.network_logging_notification_title))
                 .setShowWhen(true)
                 .setContentIntent(pendingIntent)
                 .build();