From 7d48766d2915728962fbd4a3104e08e2256af9f3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 22 Aug 2020 15:42:10 +0800 Subject: [PATCH] bugfix --- kivyblocks/baseWidget.py | 2 -- kivyblocks/widgetExt/camera.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/kivyblocks/baseWidget.py b/kivyblocks/baseWidget.py index a5d02c3..b8270e2 100755 --- a/kivyblocks/baseWidget.py +++ b/kivyblocks/baseWidget.py @@ -46,7 +46,6 @@ from kivy.uix.filechooser import FileChooser from kivy.uix.effectwidget import EffectWidget from kivy.uix.colorpicker import ColorPicker from kivy.uix.carousel import Carousel -from kivy.uix.camera import Camera from kivy.uix.bubble import Bubble from kivy.uix.codeinput import CodeInput from kivy.graphics import Color, Rectangle @@ -73,7 +72,6 @@ from .qrdata import QRCodeWidget if platform == 'android': from .widgetExt.phonebutton import PhoneButton from .widgetExt.androidwebview import AWebView - from .widgetExt.camera import AndroidCamera class WrapText(Label): def __init__(self, **kw): diff --git a/kivyblocks/widgetExt/camera.py b/kivyblocks/widgetExt/camera.py index bb537a4..bb3a44a 100644 --- a/kivyblocks/widgetExt/camera.py +++ b/kivyblocks/widgetExt/camera.py @@ -6,7 +6,7 @@ from plyer.facades import Camera from plyer.platforms.android import activity Intent = autoclass('android.content.Intent') -PythonActivity = autoclass('org.renpy.android.PythonActivity') +PythonActivity = autoclass('org.kivy.android.PythonActivity') MediaStore = autoclass('android.provider.MediaStore') Uri = autoclass('android.net.Uri')