File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/main/java/org/kivy/android Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ def make_package(args):
301
301
f .write ("P4A_IS_WINDOWED=" + str (args .window ) + "\n " )
302
302
if hasattr (args , "orientation" ):
303
303
f .write ("P4A_ORIENTATION=" + str (args .orientation ) + "\n " )
304
- except Exception as e :
304
+ except AttributeError as e :
305
305
print ('kivy is not in the requirements' )
306
306
f .write ("P4A_NUMERIC_VERSION=" + str (args .numeric_version ) + "\n " )
307
307
f .write ("P4A_MINSDK=" + str (args .min_sdk_version ) + "\n " )
Original file line number Diff line number Diff line change 18
18
19
19
import org .renpy .android .Hardware ;
20
20
21
- //new imports for channel definition
21
+ //imports for channel definition
22
22
import android .app .NotificationManager ;
23
23
import android .app .NotificationChannel ;
24
24
import android .content .Context ;
@@ -135,7 +135,7 @@ protected void doStartForeground(Bundle extras) {
135
135
/**
136
136
* https://stackoverflow.com/questions/47531742/startforeground-fail-after-upgrade-to-android-8-1
137
137
*
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
139
139
*/
140
140
private void startForegroundWithNewChannel (int id , Notification notification ){
141
141
String NOTIFICATION_CHANNEL_ID = "org.bd.pureservice" ; //TODO: dynamically
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def prebuild_arch(self, arch):
40
40
41
41
is_sdl2 = bootstrap_name in ('sdl2' , 'sdl2python3' , 'sdl2_gradle' )
42
42
is_pygame = bootstrap_name in ('pygame' ,)
43
- is_webview = bootstrap_name in ('webview' ,'service_only' ,)
43
+ is_webview = bootstrap_name in ('webview' , 'service_only' ,)
44
44
45
45
if is_sdl2 or is_webview :
46
46
if is_sdl2 :
You can’t perform that action at this time.
0 commit comments