refactor useless version check - min sdk is 21

This commit is contained in:
Proshunin German committed 2020-07-02 21:33:44 +05:00
1 parent c4036f73de
commit 700f027257
1 file changed
+1 -3
@@ -21,10 +21,8 @@ import eu.depau.etchdroid.utils.exception.CannotGetFilePathException
* https://stackoverflow.com/a/27271131/1124621
*/
fun Uri.getFilePath(context: Context): String? {
val isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT
try {
if (isKitKat && DocumentsContract.isDocumentUri(context, this)) {
if (DocumentsContract.isDocumentUri(context, this)) {
// DocumentProvider
if (isExternalStorageDocument) {