Files
rr3-apk/decompiled-community/sources/androidx/browser/trusted/NotificationApiHelperForO.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

34 lines
1.3 KiB
Java

package androidx.browser.trusted;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Context;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.annotation.RestrictTo;
@RequiresApi(26)
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes.dex */
class NotificationApiHelperForO {
public static boolean isChannelEnabled(NotificationManager notificationManager, String str) {
NotificationChannel notificationChannel = notificationManager.getNotificationChannel(str);
return notificationChannel == null || notificationChannel.getImportance() != 0;
}
@Nullable
public static Notification copyNotificationOntoChannel(Context context, NotificationManager notificationManager, Notification notification, String str, String str2) {
notificationManager.createNotificationChannel(new NotificationChannel(str, str2, 3));
if (notificationManager.getNotificationChannel(str).getImportance() == 0) {
return null;
}
Notification.Builder recoverBuilder = Notification.Builder.recoverBuilder(context, notification);
recoverBuilder.setChannelId(str);
return recoverBuilder.build();
}
private NotificationApiHelperForO() {
}
}