rename FILE_PROVIDER_AUTHORITY
This commit is contained in:
1 parent
6180ea3302
commit
2eef9b8fb0
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -27,12 +27,12 @@ android {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
resValue "string", "app_name", "EhViewer"
|
||||
buildConfigField 'String', 'AUTHORITY', '"com.hippo.ehviewer.fileprovider"'
|
||||
buildConfigField 'String', 'FILE_PROVIDER_AUTHORITY', '"com.hippo.ehviewer.fileprovider"'
|
||||
}
|
||||
debug {
|
||||
applicationIdSuffix ".debug"
|
||||
resValue "string", "app_name", "EhViewerDebug"
|
||||
buildConfigField 'String', 'AUTHORITY', '"com.hippo.ehviewer.debug.fileprovider"'
|
||||
buildConfigField 'String', 'FILE_PROVIDER_AUTHORITY', '"com.hippo.ehviewer.debug.fileprovider"'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -861,7 +861,7 @@ public class GalleryActivity extends EhActivity implements SeekBar.OnSeekBarChan
|
||||
|
||||
Uri uri = new Uri.Builder()
|
||||
.scheme(ContentResolver.SCHEME_CONTENT)
|
||||
.authority(BuildConfig.AUTHORITY)
|
||||
.authority(BuildConfig.FILE_PROVIDER_AUTHORITY)
|
||||
.appendPath("image")
|
||||
.appendPath(filename)
|
||||
.build();
|
||||
|
||||
Reference in new issue
Block a user