Leave the incoming call notification category as CATEGORY_CALL (#3792)

This commit is contained in:
Dmitry Markin 2020-06-16 22:07:01 +03:00 committed by GitHub
parent 8356a1cfe1
commit 4493f6cc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -602,9 +602,6 @@ public class NotificationService {
} catch (SecurityException e) { } catch (SecurityException e) {
Log.d(Config.LOGTAG, "unable to use custom notification sound " + uri.toString()); Log.d(Config.LOGTAG, "unable to use custom notification sound " + uri.toString());
} }
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mBuilder.setCategory(Notification.CATEGORY_MESSAGE);
}
mBuilder.setPriority(NotificationCompat.PRIORITY_HIGH); mBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);
setNotificationColor(mBuilder); setNotificationColor(mBuilder);
mBuilder.setLights(LED_COLOR, 2000, 3000); mBuilder.setLights(LED_COLOR, 2000, 3000);