Updated path in service loader

This commit is contained in:
Mark Qvist 2022-10-15 20:11:47 +02:00
parent d368e40f27
commit 4a90c7dcd5
1 changed files with 2 additions and 2 deletions

View File

@ -147,8 +147,8 @@ public class PythonService extends Service implements Runnable {
builder.setContentIntent(pIntent);
// builder.setOngoing(true);
// TODO: Generalise this
Bitmap icon_bitmap = BitmapFactory.decodeFile("/data/user/0/io.unsigned.sideband/files/app/assets/notification_icon.png");
String files_path = context.getFilesDir().getPath();
Bitmap icon_bitmap = BitmapFactory.decodeFile(files_path+"/app/assets/notification_icon.png");
Icon service_icon = Icon.createWithBitmap(icon_bitmap);
// builder.setSmallIcon(context.getApplicationInfo().icon);
builder.setSmallIcon(service_icon);