Skip to content

Commit

Permalink
Remove the big icon because it was only visible in dark mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed May 27, 2024
1 parent 95fa61a commit 972c06e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public static void showErrorNotification(Context context, String message){
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, contentIntent, PendingIntent.FLAG_UPDATE_CURRENT);

NotificationCompat.Builder nfc = new NotificationCompat.Builder(context.getApplicationContext(), NotificationChannelNames.GPSLOGGER_ERRORS)
.setSmallIcon(android.R.drawable.stat_notify_error)
.setLargeIcon(BitmapFactory.decodeResource(context.getResources(), android.R.drawable.stat_notify_error))
.setSmallIcon(android.R.drawable.stat_sys_warning)
//.setLargeIcon(BitmapFactory.decodeResource(context.getResources(), android.R.drawable.stat_sys_warning))
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setCategory(NotificationCompat.CATEGORY_ERROR)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
Expand Down

0 comments on commit 972c06e

Please sign in to comment.