- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
54 lines
1.9 KiB
Java
54 lines
1.9 KiB
Java
package androidx.startup;
|
|
|
|
import android.content.ContentProvider;
|
|
import android.content.ContentValues;
|
|
import android.content.Context;
|
|
import android.database.Cursor;
|
|
import android.net.Uri;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class InitializationProvider extends ContentProvider {
|
|
@Override // android.content.ContentProvider
|
|
public final boolean onCreate() {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
if (context.getApplicationContext() == null) {
|
|
return true;
|
|
}
|
|
AppInitializer.getInstance(context).discoverAndInitialize();
|
|
return true;
|
|
}
|
|
throw new StartupException("Context cannot be null");
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
@Nullable
|
|
public final Cursor query(@NonNull Uri uri, @Nullable String[] strArr, @Nullable String str, @Nullable String[] strArr2, @Nullable String str2) {
|
|
throw new IllegalStateException("Not allowed.");
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
@Nullable
|
|
public final String getType(@NonNull Uri uri) {
|
|
throw new IllegalStateException("Not allowed.");
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
@Nullable
|
|
public final Uri insert(@NonNull Uri uri, @Nullable ContentValues contentValues) {
|
|
throw new IllegalStateException("Not allowed.");
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public final int delete(@NonNull Uri uri, @Nullable String str, @Nullable String[] strArr) {
|
|
throw new IllegalStateException("Not allowed.");
|
|
}
|
|
|
|
@Override // android.content.ContentProvider
|
|
public final int update(@NonNull Uri uri, @Nullable ContentValues contentValues, @Nullable String str, @Nullable String[] strArr) {
|
|
throw new IllegalStateException("Not allowed.");
|
|
}
|
|
}
|