From 3c72b13d5e7e3711e3d43fd9bdf37b5a190def46 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Tue, 22 Mar 2022 21:16:45 +0600 Subject: [PATCH] 5133-add_missing_AppContentProvider issue: https://gitlab.e.foundation/e/backlog/-/issues/5133 Add missing AppContentProvider --- .../fsck/k9/provider/AppContentProvider.java | 47 +++++++++++++++++++ app/k9mail/src/main/AndroidManifest.xml | 6 +++ 2 files changed, 53 insertions(+) create mode 100644 app/core/src/main/java/com/fsck/k9/provider/AppContentProvider.java diff --git a/app/core/src/main/java/com/fsck/k9/provider/AppContentProvider.java b/app/core/src/main/java/com/fsck/k9/provider/AppContentProvider.java new file mode 100644 index 0000000000..aa82997c23 --- /dev/null +++ b/app/core/src/main/java/com/fsck/k9/provider/AppContentProvider.java @@ -0,0 +1,47 @@ +package com.fsck.k9.provider; + +import android.content.ContentProvider; +import android.content.ContentValues; +import android.database.Cursor; +import android.net.Uri; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + +public class AppContentProvider extends ContentProvider { + + @Nullable + @Override + public String getType(@NonNull Uri uri) { + return null; + } + + @Override + public int update(@NonNull Uri uri, @Nullable ContentValues contentValues, @Nullable String s, + @Nullable String[] strings) { + return 0; + } + + @Nullable + @Override + public Uri insert(@NonNull Uri uri, @Nullable ContentValues contentValues) { + return null; + } + + @Override + public boolean onCreate() { + return false; + } + + @Nullable + @Override + public Cursor query(@NonNull Uri uri, @Nullable String[] strings, @Nullable String s, @Nullable String[] strings1, + @Nullable String s1) { + return null; + } + + @Override + public int delete(@NonNull Uri uri, @Nullable String s, @Nullable String[] strings) { + return 0; + } +} diff --git a/app/k9mail/src/main/AndroidManifest.xml b/app/k9mail/src/main/AndroidManifest.xml index b9947fc987..494ee2619e 100644 --- a/app/k9mail/src/main/AndroidManifest.xml +++ b/app/k9mail/src/main/AndroidManifest.xml @@ -426,5 +426,11 @@ android:resource="@xml/temp_file_provider_paths" /> + + -- GitLab