mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +01:00
Quick fix on this file
This commit is contained in:
parent
eb39b37374
commit
8d8565ca63
@ -20,6 +20,7 @@ import android.content.ContentResolver
|
|||||||
import android.content.ContentValues
|
import android.content.ContentValues
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
|
import android.os.Build
|
||||||
import android.os.Environment
|
import android.os.Environment
|
||||||
import android.provider.MediaStore
|
import android.provider.MediaStore
|
||||||
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
|
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
|
||||||
@ -55,7 +56,7 @@ private fun storeFailureScreenshot(bitmap: Bitmap, screenshotName: String) {
|
|||||||
put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg")
|
put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg")
|
||||||
put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis())
|
put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis())
|
||||||
}
|
}
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 29) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
useMediaStoreScreenshotStorage(
|
useMediaStoreScreenshotStorage(
|
||||||
contentValues,
|
contentValues,
|
||||||
contentResolver,
|
contentResolver,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user