android-notify 1.52.2__tar.gz → 1.52.3__tar.gz
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-1.52.2 → android_notify-1.52.3}/PKG-INFO +1 -1
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify/sword.py +12 -12
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/PKG-INFO +1 -1
- {android_notify-1.52.2 → android_notify-1.52.3}/setup.py +1 -1
- {android_notify-1.52.2 → android_notify-1.52.3}/README.md +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify/__init__.py +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify/__main__.py +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify/core.py +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify/styles.py +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/SOURCES.txt +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/dependency_links.txt +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/requires.txt +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/top_level.txt +0 -0
- {android_notify-1.52.2 → android_notify-1.52.3}/setup.cfg +0 -0
|
@@ -116,7 +116,7 @@ class Notification:
|
|
|
116
116
|
# if key not in non_string_keys: value = str(value) to fix
|
|
117
117
|
#non_string_keys=['progress_max_value','progress_current_value','callback','logs']
|
|
118
118
|
# TODO using default values to check types
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
# During Development (When running on PC)
|
|
121
121
|
logs=not ON_ANDROID
|
|
122
122
|
def __init__(self,**kwargs):
|
|
@@ -157,11 +157,11 @@ class Notification:
|
|
|
157
157
|
Args:
|
|
158
158
|
new_title (str): New Notification Title
|
|
159
159
|
"""
|
|
160
|
-
self.title=new_title
|
|
160
|
+
self.title=str(new_title)
|
|
161
161
|
if self.logs:
|
|
162
|
-
print(f'new notification title: {
|
|
162
|
+
print(f'new notification title: {self.title}')
|
|
163
163
|
if ON_ANDROID:
|
|
164
|
-
self.__builder.setContentTitle(
|
|
164
|
+
self.__builder.setContentTitle(String(self.title))
|
|
165
165
|
|
|
166
166
|
def updateMessage(self,new_message):
|
|
167
167
|
"""Changes Old Message
|
|
@@ -169,11 +169,11 @@ class Notification:
|
|
|
169
169
|
Args:
|
|
170
170
|
new_message (str): New Notification Message
|
|
171
171
|
"""
|
|
172
|
-
self.message=new_message
|
|
172
|
+
self.message=str(new_message)
|
|
173
173
|
if self.logs:
|
|
174
|
-
print(f'new notification message: {
|
|
174
|
+
print(f'new notification message: {self.message}')
|
|
175
175
|
if ON_ANDROID:
|
|
176
|
-
self.__builder.setContentText(
|
|
176
|
+
self.__builder.setContentText(String(self.message))
|
|
177
177
|
|
|
178
178
|
def updateProgressBar(self,current_value,message:str=''):
|
|
179
179
|
"""current_value is the value to set progressbar, message defaults to last message"""
|
|
@@ -186,7 +186,7 @@ class Notification:
|
|
|
186
186
|
|
|
187
187
|
self.__builder.setProgress(self.progress_max_value, current_value, False)
|
|
188
188
|
if message:
|
|
189
|
-
self.
|
|
189
|
+
self.updateMessage(message)
|
|
190
190
|
self.notification_manager.notify(self.__id, self.__builder.build())
|
|
191
191
|
|
|
192
192
|
def removeProgressBar(self,message=''):
|
|
@@ -305,11 +305,11 @@ class Notification:
|
|
|
305
305
|
Args:
|
|
306
306
|
style (str): required style
|
|
307
307
|
"""
|
|
308
|
-
|
|
308
|
+
|
|
309
309
|
if not ON_ANDROID:
|
|
310
310
|
# TODO for logs when not on android and style related to imgs etraxct app path from buildozer.spec and print
|
|
311
311
|
return
|
|
312
|
-
|
|
312
|
+
|
|
313
313
|
if style == NotificationStyles.BIG_TEXT:
|
|
314
314
|
big_text_style = NotificationCompatBigTextStyle() # pylint: disable=E0606
|
|
315
315
|
big_text_style.bigText(str(self.body))
|
|
@@ -338,7 +338,7 @@ class Notification:
|
|
|
338
338
|
|
|
339
339
|
if already_sent:
|
|
340
340
|
self.notification_manager.notify(self.__id, self.__builder.build())
|
|
341
|
-
|
|
341
|
+
|
|
342
342
|
# elif style == 'custom':
|
|
343
343
|
# self.__builder = self.__doCustomStyle()
|
|
344
344
|
|
|
@@ -357,7 +357,7 @@ class Notification:
|
|
|
357
357
|
bitmap = self.__getImgFromPath(user_img)
|
|
358
358
|
if bitmap:
|
|
359
359
|
self.__applyNotificationImage(bitmap,img_style)
|
|
360
|
-
|
|
360
|
+
|
|
361
361
|
|
|
362
362
|
def __getImgFromPath(self, relative_path):
|
|
363
363
|
app_folder=os.path.join(app_storage_path(),'app') # pylint: disable=possibly-used-before-assignment
|
|
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as readme_data:
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="android-notify",
|
|
9
|
-
version="1.52.
|
|
9
|
+
version="1.52.3",
|
|
10
10
|
author="Fabian",
|
|
11
11
|
author_email='fector101@yahoo.com',
|
|
12
12
|
description="A Python package that simpilfies creating Android notifications in Kivy apps.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{android_notify-1.52.2 → android_notify-1.52.3}/android_notify.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|