Fix notification for Emui 4.1

This commit is contained in:
yuhan6665
2020-08-02 08:40:45 -04:00
parent 6afd4d0549
commit ca554e6ac4

View File

@@ -384,6 +384,7 @@ class V2RayVpnService : VpnService() {
mBuilder?.setSmallIcon(R.drawable.ic_stat_direct)
}
mBuilder?.setStyle(NotificationCompat.BigTextStyle().bigText(contentText))
mBuilder?.setContentText(contentText) // Emui4.1 need content text even if style is set as BigTextStyle
getNotificationManager().notify(NOTIFICATION_ID, mBuilder?.build())
}
}