android: use .mActivity

parent d7f6da7e
......@@ -21,7 +21,7 @@ if isinstance(getattr(sys.stdout, "buffer", None), str):
import os
if "ANDROID_PRIVATE" in os.environ:
import android.config, jnius
activ = jnius.autoclass(android.config.ACTIVITY_CLASS_NAME)
activ = jnius.autoclass(android.config.ACTIVITY_CLASS_NAME).mActivity
info = activ.getApplicationInfo()
debug = os.path.join(os.environ["ANDROID_PRIVATE"], "__debug__")
if info.flags & type(info).FLAG_DEBUGGABLE and os.path.exists(debug):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment