Updated on 2026-08-14

This commit is contained in:
Tangem 2018-06-01 13:28:12 +03:00
parent e8c6dfadee
commit 9a3107a395
8 changed files with 20 additions and 8 deletions

View file

@ -8,8 +8,11 @@ import android.net.Uri;
import android.os.ParcelFileDescriptor;
import android.util.Log;
import com.tangem.wallet.R;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Objects;
/**
* Created by dvol on 15.02.2018.
@ -20,7 +23,8 @@ public class LogFileProvider extends ContentProvider {
private static final String CLASS_NAME = "LogFileProvider";
// The authority is the symbolic name for the provider class
public static final String AUTHORITY = "com.tangem.LogFileProvider";
// public static final String AUTHORITY = "com.tangem.LogFileProvider";
// public static final String AUTHORITY = "com.tangem.LogFileProvider";
// UriMatcher used to match against incoming requests
private UriMatcher uriMatcher;
@ -32,7 +36,8 @@ public class LogFileProvider extends ContentProvider {
// Add a URI to the matcher which will match against the form
// 'content://it.my.app.LogFileProvider/*'
// and return 1 in the case that the incoming Uri matches this pattern
uriMatcher.addURI(AUTHORITY, "*", 1);
uriMatcher.addURI(Objects.requireNonNull(getContext()).getString(R.string.log_file_provider_authorities), "*", 1);
return true;
}