android-notify 1.59.1__py3-none-any.whl → 1.59.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of android-notify might be problematic. Click here for more details.

android_notify/sword.py CHANGED
@@ -2,6 +2,8 @@
2
2
  import traceback
3
3
  import os,re
4
4
  import threading
5
+
6
+
5
7
  from .an_types import Importance
6
8
  from .an_utils import can_accept_arguments
7
9
  from .styles import NotificationStyles
@@ -32,7 +34,7 @@ try:
32
34
  IconCompat = autoclass('androidx.core.graphics.drawable.IconCompat')
33
35
  ON_ANDROID = True
34
36
  except Exception as e:
35
- if e.name != 'android':
37
+ if hasattr(e,'name') and e.name != 'android':
36
38
  print('Exception: ',e)
37
39
  print(traceback.format_exc())
38
40
 
@@ -562,7 +564,8 @@ class Notification(BaseNotification):
562
564
  self.__built_parameter_filled = True
563
565
 
564
566
  def __insert_app_icon(self,path=''):
565
- if path or self.app_icon not in ['','Defaults to package app icon']:
567
+ if BuildVersion.SDK_INT >= 23 and (path or self.app_icon not in ['','Defaults to package app icon']):
568
+ # Bitmap Insert as Icon Not available below Android 6
566
569
  if self.logs:
567
570
  print('getting custom icon...')
568
571
  self.__set_icon_from_bitmap(path or self.app_icon)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-notify
3
- Version: 1.59.1
3
+ Version: 1.59.2
4
4
  Summary: A Python package that simplifies creating Android notifications in Kivy apps.
5
5
  Home-page: https://android-notify.vercel.app
6
6
  Author: Fabian
@@ -5,8 +5,8 @@ android_notify/an_utils.py,sha256=Io34r5JTorH3EbeR0bIfQ-8-bF3xO1wiVnvqafA2qyw,24
5
5
  android_notify/base.py,sha256=Fgv3hf-vwu-GvivDsKxseOyeOrLmw1moNAv_mZKvA5M,3477
6
6
  android_notify/core.py,sha256=Per4HFwYwP-mxHJqnwcLlWXsbZsSeeAYN49MmFU2qVk,6113
7
7
  android_notify/styles.py,sha256=jLxeXB41HXe0fn3l07JZsHi-d0u-dESvsV_OqQow_Xc,726
8
- android_notify/sword.py,sha256=Zut_Yr2rYsgW4PcjI6bpfHA37Lj9bpvG_ni6DGAIQgE,38327
9
- android_notify-1.59.1.dist-info/METADATA,sha256=D62WBGubg7FG5Pr8AY-rVTkGF-BpmmKDkqBA2R6QuTI,4375
10
- android_notify-1.59.1.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
11
- android_notify-1.59.1.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
12
- android_notify-1.59.1.dist-info/RECORD,,
8
+ android_notify/sword.py,sha256=DASgJ5t4HIYCLd_-my_WGi678M2v_7xEJO4oBDL-gOc,38450
9
+ android_notify-1.59.2.dist-info/METADATA,sha256=ogkrhZVaMdpIi8WBCTtqaG9ohj5eSEjhIGrVfEs8k_M,4375
10
+ android_notify-1.59.2.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
11
+ android_notify-1.59.2.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
12
+ android_notify-1.59.2.dist-info/RECORD,,