Skip to content

Commit 04436ed

Browse files
committed
androidx migrate
1 parent d53f952 commit 04436ed

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ android {
4646
}
4747
}
4848
dependencies {
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
}

android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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"

android/src/main/java/com/flutter_webview_plugin/WebviewManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import android.webkit.WebView;
1818
import android.widget.FrameLayout;
1919
import android.provider.MediaStore;
20-
import android.support.v4.content.FileProvider;
20+
import androidx.core.content.FileProvider;
2121

2222
import java.util.List;
2323
import 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);

0 commit comments

Comments
 (0)