Skip to content

Commit 3d7e2fc

Browse files
committed
use application icon for notification
1 parent e11bc86 commit 3d7e2fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/src/org/renpy/android/PythonService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import android.app.Notification;
1010
import android.app.PendingIntent;
1111
import android.os.Process;
12-
import android.R;
1312

1413
public class PythonService extends Service implements Runnable {
1514

@@ -52,10 +51,10 @@ public int onStartCommand(Intent intent, int flags, int startId) {
5251
pythonThread = new Thread(this);
5352
pythonThread.start();
5453

55-
Notification notification = new Notification(R.drawable.sym_def_app_icon,
54+
Context context = getApplicationContext();
55+
Notification notification = new Notification(context.getApplicationInfo().icon,
5656
serviceTitle,
5757
System.currentTimeMillis());
58-
Context context = getApplicationContext();
5958
Intent contextIntent = new Intent(context, PythonActivity.class);
6059
PendingIntent pIntent = PendingIntent.getActivity(context, 0, contextIntent,
6160
PendingIntent.FLAG_UPDATE_CURRENT);

0 commit comments

Comments
 (0)