File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
java/com/flutter_webview_plugin Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,5 +46,5 @@ android {
4646 }
4747}
4848dependencies {
49- implementation group : ' com.android.support ' , name : ' support-v4 ' , version : ' 27 .0.0'
49+ implementation group : ' androidx.appcompat ' , name : ' appcompat ' , version : ' 1 .0.0'
5050}
Original file line number Diff line number Diff line change 33 package =" com.flutter_webview_plugin" >
44 <application >
55 <provider
6- android : name =" android.support.v4 .content.FileProvider"
6+ android : name =" androidx.core .content.FileProvider"
77 android : authorities =" ${applicationId}.fileprovider"
88 android : exported =" false"
99 android : grantUriPermissions =" true"
Original file line number Diff line number Diff line change 1717import android .webkit .WebView ;
1818import android .widget .FrameLayout ;
1919import android .provider .MediaStore ;
20- import android . support . v4 .content .FileProvider ;
20+ import androidx . core .content .FileProvider ;
2121
2222import java .util .List ;
2323import java .util .ArrayList ;
@@ -200,7 +200,6 @@ public boolean onShowFileChooser(
200200
201201 Intent chooserIntent = new Intent (Intent .ACTION_CHOOSER );
202202 chooserIntent .putExtra (Intent .EXTRA_INTENT , contentSelectionIntent );
203- chooserIntent .putExtra (Intent .EXTRA_TITLE , "Image Chooser" );
204203 chooserIntent .putExtra (Intent .EXTRA_INITIAL_INTENTS , intentArray );
205204 activity .startActivityForResult (chooserIntent , FILECHOOSER_RESULTCODE );
206205 return true ;
@@ -225,7 +224,6 @@ private Uri getOutputFilename(String intentType) {
225224 try {
226225 capturedFile = createCapturedFile (prefix , suffix );
227226 } catch (IOException e ) {
228- Log .e ("CREATE FILE" , "Error occurred while creating the File" , e );
229227 e .printStackTrace ();
230228 }
231229 return FileProvider .getUriForFile (context , packageName + ".fileprovider" , capturedFile );
You can’t perform that action at this time.
0 commit comments