Fixed service notification setting being overwritten if android > 8

This commit is contained in:
Sylvain Berfini 2019-03-26 11:16:43 +01:00
parent 7cb275d054
commit 2d2b551663

View file

@ -78,11 +78,6 @@ public class NotificationsManager {
new Intent(mContext, LinphoneService.instance().getIncomingReceivedActivity()); new Intent(mContext, LinphoneService.instance().getIncomingReceivedActivity());
notifIntent.putExtra("Notification", true); notifIntent.putExtra("Notification", true);
// Disable service notification for Android O
if (Version.sdkAboveOrEqual(Version.API26_O_80)) {
LinphonePreferences.instance().setServiceNotificationVisibility(false);
}
Bitmap bm = null; Bitmap bm = null;
try { try {
bm = BitmapFactory.decodeResource(mContext.getResources(), R.mipmap.ic_launcher); bm = BitmapFactory.decodeResource(mContext.getResources(), R.mipmap.ic_launcher);