Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import android.content.pm.ServiceInfo;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.VisibleForTesting;
import androidx.core.app.NotificationManagerCompat;
import java.util.Locale;

Expand Down Expand Up @@ -55,7 +54,6 @@ public static boolean areNotificationsEnabled(Context context, String channelNam
/**
* Checks if high-priority notifications are configured in the manifest metadata.
*/
@VisibleForTesting
static boolean shouldUseHighPriorityNotifications(Context context) {
if (!(context instanceof Service)) return false;
try {
Expand Down Expand Up @@ -137,7 +135,6 @@ static void createNotificationChannelAndMaybeDeleteOldOne(Context context, Strin
* Generates a notification channel id from a channel name.
* TODO: Remove this when we can use the method defined in AndroidX instead.
*/
@VisibleForTesting
static String channelNameToId(Context context, String name) {
String baseId = name.toLowerCase(Locale.ROOT).replace(' ', '_');
return shouldUseHighPriorityNotifications(context)
Expand Down
Loading