Skip to content

Commit d4c140a

Browse files
E2-1710: Remove old code affecting notifications (#286)
Remove correct code remove new line
1 parent 227960d commit d4c140a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

AndroidSDKPush/src/main/java/com/leanplum/LeanplumPushService.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -344,20 +344,8 @@ private static void showNotification(Context context, final Bundle message) {
344344
}
345345

346346
int defaultIconId = 0;
347-
// If client will start to use adaptive icon, there can be a problem
348-
// https://issuetracker.google.com/issues/68716460 that can cause a factory reset of the device
349-
// on Android Version 26.
350347
if (!LeanplumNotificationHelper.isApplicationIconValid(context)) {
351348
defaultIconId = LeanplumNotificationHelper.getDefaultPushNotificationIconResourceId(context);
352-
if (defaultIconId == 0) {
353-
Log.e("You are using adaptive icons without having a fallback icon for push" +
354-
" notifications on Android Oreo. \n" + "This can cause a factory reset of the device" +
355-
" on Android Version 26. Please add regular icon with name " +
356-
"\"leanplum_default_push_icon.png\" to your \"drawable\" folder.\n" + "Google issue: " +
357-
"https://issuetracker.google.com/issues/68716460"
358-
);
359-
return;
360-
}
361349
}
362350

363351
final NotificationManager notificationManager = (NotificationManager)

0 commit comments

Comments
 (0)