- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
574 B
Java
21 lines
574 B
Java
package androidx.core.content;
|
|
|
|
import android.content.ContentProvider;
|
|
import android.content.Context;
|
|
import androidx.annotation.NonNull;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ContentProviderCompat {
|
|
private ContentProviderCompat() {
|
|
}
|
|
|
|
@NonNull
|
|
public static Context requireContext(@NonNull ContentProvider contentProvider) {
|
|
Context context = contentProvider.getContext();
|
|
if (context != null) {
|
|
return context;
|
|
}
|
|
throw new IllegalStateException("Cannot find context from the provider.");
|
|
}
|
|
}
|