mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-21 06:03:53 +00:00
minimal changes to get camera intent working for Android 10 users
This is only a temporary workaround for Android 10 users: - Enable permission request to write to external storage for Android 10 - Enable old behaviour prior Android 10 for external storage
This commit is contained in:
parent
13880130f2
commit
8119c5bd91
2 changed files with 3 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
|
||||
private boolean needsRequestWritePermission() {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M ||
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||
Build.VERSION.SDK_INT > Build.VERSION_CODES.Q)
|
||||
return false;
|
||||
String permission = Manifest.permission.WRITE_EXTERNAL_STORAGE;
|
||||
int state = ContextCompat.checkSelfPermission(this, permission);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue