Skip to content

Commit 48ea021

Browse files
committed
cleanup
1 parent 992f16d commit 48ea021

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pythonforandroid/bootstraps/common/build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def make_package(args):
301301
f.write("P4A_IS_WINDOWED=" + str(args.window) + "\n")
302302
if hasattr(args, "orientation"):
303303
f.write("P4A_ORIENTATION=" + str(args.orientation) + "\n")
304-
except Exception as e:
304+
except AttributeError as e:
305305
print ('kivy is not in the requirements')
306306
f.write("P4A_NUMERIC_VERSION=" + str(args.numeric_version) + "\n")
307307
f.write("P4A_MINSDK=" + str(args.min_sdk_version) + "\n")

pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import org.renpy.android.Hardware;
2020

21-
//new imports for channel definition
21+
//imports for channel definition
2222
import android.app.NotificationManager;
2323
import android.app.NotificationChannel;
2424
import android.content.Context;
@@ -135,7 +135,7 @@ protected void doStartForeground(Bundle extras) {
135135
/**
136136
* https://stackoverflow.com/questions/47531742/startforeground-fail-after-upgrade-to-android-8-1
137137
*
138-
* this change is necessary because from Android 8 on we need our own channel
138+
* necessary because from Android 8 on we need our own channel
139139
*/
140140
private void startForegroundWithNewChannel(int id, Notification notification){
141141
String NOTIFICATION_CHANNEL_ID = "org.bd.pureservice"; //TODO: dynamically

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def prebuild_arch(self, arch):
4040

4141
is_sdl2 = bootstrap_name in ('sdl2', 'sdl2python3', 'sdl2_gradle')
4242
is_pygame = bootstrap_name in ('pygame',)
43-
is_webview = bootstrap_name in ('webview','service_only',)
43+
is_webview = bootstrap_name in ('webview', 'service_only',)
4444

4545
if is_sdl2 or is_webview:
4646
if is_sdl2:

0 commit comments

Comments
 (0)