Skip to content

Commit

Permalink
Remove merge duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorham committed Dec 7, 2023
1 parent ddaf8c6 commit 718d854
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,4 @@ static Notification getNotificationFromInsideBuilder(final NotificationCompat.Bu
}
}

static Notification getNotificationFromInsideBuilder(final NotificationCompat.Builder builder) {
try {
final Class<?> builderClass = builder.getClass();
final Field mNotificationField = builderClass.getDeclaredField("mNotification");
mNotificationField.setAccessible(true);
return (Notification) mNotificationField.get(builder);
} catch (NoSuchFieldException | IllegalAccessException e) {
if (JoH.ratelimit("notification-workaround", 1800)) {
UserError.Log.wtf(TAG, "Workaround being used for notification channels no longer works - please report");
}
return null;
}
}

}

0 comments on commit 718d854

Please sign in to comment.