Disabling Service notification on Android O
This commit is contained in:
parent
b13e063ac5
commit
d4d6412bb4
1 changed files with 4 additions and 0 deletions
|
@ -319,6 +319,10 @@ public final class LinphoneService extends Service {
|
|||
notifIntent.putExtra("Notification", true);
|
||||
mNotifContentIntent = PendingIntent.getActivity(this, 0, notifIntent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
|
||||
if (Version.sdkAboveOrEqual(Version.API26_O_80)) {
|
||||
disableNotificationsAutomaticRegistrationStatusContent();
|
||||
}
|
||||
|
||||
Bitmap bm = null;
|
||||
try {
|
||||
bm = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
|
||||
|
|
Loading…
Reference in a new issue