package com.ustadmobile.port.android.util.ext;

import java.lang.System;

@kotlin.Metadata(mv = {1, 7, 1}, k = 2, d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u001d\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0086@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019\u00a8\u0006\u0006"}, d2 = {"getFileName", "", "Landroid/content/ContentResolver;", "uri", "Landroid/net/Uri;", "(Landroid/content/ContentResolver;Landroid/net/Uri;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "app-android_debug"})
public final class ContentResolverExtKt {
    
    /**
     * Gets the file name for a Uri (e.g. file) that has just been selected. When a file is selected
     * using ActivityResultContracts.GetContent the Uri that is returned might or might not have the
     * actual filename in the path. Therefor we run a query to try and get the specified DISPLAY_NAME,
     * and only if that doesn't return a result, then we fallback to using substringAfterLast("/").
     *
     * See:
     * https://developer.android.com/training/secure-file-sharing/retrieve-info
     *
     * @param uri the Uri of a file that has just been selected
     */
    @org.jetbrains.annotations.Nullable()
    public static final java.lang.Object getFileName(@org.jetbrains.annotations.NotNull()
    android.content.ContentResolver $this$getFileName, @org.jetbrains.annotations.NotNull()
    android.net.Uri uri, @org.jetbrains.annotations.NotNull()
    kotlin.coroutines.Continuation<? super java.lang.String> p2) {
        return null;
    }
}