Skip to content

Commit ec7529f

Browse files
committed
Suppress deprecated warning for getExternalStoragePublicDirectory()
This deprecated warning is suppressed, that is, instead of being resolved, since a resolution would require a proper migration.
1 parent 6efbf9f commit ec7529f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ open class MainActivity : AppCompatActivity(),
642642
val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
643643

644644
mediaFile = "wp-" + System.currentTimeMillis() + ".jpg"
645+
@Suppress("DEPRECATION")
645646
mediaPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString() +
646647
File.separator + "Camera" + File.separator + mediaFile
647648
intent.putExtra(MediaStore.EXTRA_OUTPUT, FileProvider.getUriForFile(this,

0 commit comments

Comments
 (0)