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 +5 -2
- {android_notify-1.59.1.dist-info → android_notify-1.59.2.dist-info}/METADATA +1 -1
- {android_notify-1.59.1.dist-info → android_notify-1.59.2.dist-info}/RECORD +5 -5
- {android_notify-1.59.1.dist-info → android_notify-1.59.2.dist-info}/WHEEL +0 -0
- {android_notify-1.59.1.dist-info → android_notify-1.59.2.dist-info}/top_level.txt +0 -0
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)
|
|
@@ -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=
|
|
9
|
-
android_notify-1.59.
|
|
10
|
-
android_notify-1.59.
|
|
11
|
-
android_notify-1.59.
|
|
12
|
-
android_notify-1.59.
|
|
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,,
|
|
File without changes
|
|
File without changes
|