Skip to content

Commit

Permalink
Change the Drawable in notification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kyudorimj authored Oct 3, 2021
1 parent adb12b6 commit 25f0830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plyer/platforms/android/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Context = autoclass('android.content.Context')
NotificationBuilder = autoclass('android.app.Notification$Builder')
NotificationManager = autoclass('android.app.NotificationManager')
Drawable = autoclass("{}.R$drawable".format(activity.getPackageName()))
Drawable = autoclass("{}.R$mipmap".format(activity.getPackageName()))
PendingIntent = autoclass('android.app.PendingIntent')
Intent = autoclass('android.content.Intent')
Toast = autoclass('android.widget.Toast')
Expand Down Expand Up @@ -97,7 +97,7 @@ def _set_icons(notification, icon=None):
.. versionadded:: 1.4.0
'''
app_icon = Drawable.presplash
app_icon = Drawable.icon
notification.setSmallIcon(app_icon)

bitmap_icon = app_icon
Expand Down

0 comments on commit 25f0830

Please sign in to comment.