Created
February 22, 2017 07:31
-
-
Save RareScrap/4f1fcfef42affc59c7a20b036c09cc50 to your computer and use it in GitHub Desktop.
Для API level 19 пикча сохранится дважды.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Игнорирование запроса разрешения на старых ОС | |
if (android.os.Build.VERSION.SDK_INT < 23) { | |
requestPermissions( | |
new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, | |
SAVE_IMAGE_PERMISSION_REQUEST_CODE); | |
doodleView.saveImage(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment