mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Popup a dialog if we haven't granted Android storage permissions.
This commit is contained in:
committed by
Baldur Karlsson
parent
db27879ff7
commit
b225731a2f
@@ -7,4 +7,11 @@ public class Loader extends android.app.NativeActivity
|
||||
static {
|
||||
System.loadLibrary("renderdoc");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(android.os.Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
// Popup a dialog if we haven't granted Android storage permissions.
|
||||
requestPermissions(new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user