[Fix] Use a different image for notifications

Working around an Infinix bug where the icon will crash the app or cause major slowdowns, I'll need to tweak the icon size later on.
This commit is contained in:
Eva Isabella Luna 2025-05-30 19:39:30 -06:00
parent 17d50bf0ad
commit 53c45da2e5
No known key found for this signature in database
GPG Key ID: 3716ACDC524F1879
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 951 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -95,7 +95,7 @@ public class FolderProvider extends DocumentsProvider {
row.add(Root.COLUMN_TITLE, applicationName);
row.add(Root.COLUMN_MIME_TYPES, ALL_MIME_TYPES);
row.add(Root.COLUMN_AVAILABLE_BYTES, BASE_DIR.getFreeSpace());
row.add(Root.COLUMN_ICON, R.drawable.ic_pojav_full);
row.add(Root.COLUMN_ICON, R.mipmap.ic_launcher);
return result;
}

View File

@ -49,7 +49,7 @@ public class GameService extends Service {
.setContentText(getString(R.string.notification_game_runs))
.setContentIntent(contentIntent)
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
.setSmallIcon(R.drawable.notif_icon)
.setSmallIcon(R.mipmap.ic_launcher_foreground)
.setNotificationSilent();
Notification notification = notificationBuilder.build();

View File

@ -50,7 +50,7 @@ public class ProgressService extends Service implements TaskCountListener {
mNotificationBuilder = new NotificationCompat.Builder(this, "channel_id")
.setContentTitle(getString(R.string.lazy_service_default_title))
.addAction(android.R.drawable.ic_menu_close_clear_cancel, getString(R.string.notification_terminate), pendingKillIntent)
.setSmallIcon(R.drawable.notif_icon)
.setSmallIcon(R.mipmap.ic_launcher_foreground)
.setNotificationSilent();
}

View File

@ -34,7 +34,7 @@ public class NotificationUtils {
if(contentTitle != -1) notificationBuilder.setContentTitle(context.getString(contentTitle));
if(contentText != -1) notificationBuilder.setContentText(context.getString(contentText));
if(actionIntent != null) notificationBuilder.setContentIntent(pendingIntent);
notificationBuilder.setSmallIcon(R.drawable.notif_icon);
notificationBuilder.setSmallIcon(R.mipmap.ic_launcher_foreground);
notificationManager.notify(notificationId, notificationBuilder.build());
}