mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
[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:
parent
17d50bf0ad
commit
53c45da2e5
Binary file not shown.
Before Width: | Height: | Size: 951 KiB After Width: | Height: | Size: 1.2 MiB |
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user