Assigned
Status Update
Comments
il...@google.com <il...@google.com>
yr...@google.com <yr...@google.com>
kr...@google.com <kr...@google.com> #2
Please include a sample project that reproduces your issue.
kr...@google.com <kr...@google.com>
pi...@bucketplace.net <pi...@bucketplace.net> #3
Here is the sample project.
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Steps to reproduce:
1. Press on "Search" icon;
2. Write something;
3. Search this text, keyboard will be dismissed;
4. Tap on "Dialog" button;
5. Dissmiss dialog;
With the new 1.5.0 fragment library version text will be cleared in the search box after dismissing dialog.
In the version 1.4.1 and lower text in the search is not clearing and this is correct behaviour.
Please suggest some workarounds or how to fix this issue?
Description
Version used: android 33
What went wrong?
This error net::ERR_UPLOAD_FILE_CHANGED appears.
I didn't use the photopicker explicitly
We know that some models automatically expose photoPicker when using ACTION_GET_CONTENT
It does not always fail, but it does fail intermittently.
it always succeeds when the photoPicker is a regular document selector that does not appear.
I suspect that the metadata in the file will be modified as soon as I approach the URI as shown in the ticket below.
override fun onShowFileChooser(
webView: WebView?,
filePathCallback: ValueCallback<Array<Uri>>?,
fileChooserParams: FileChooserParams?,
): Boolean {
WebViewActivity.filePathCallback = filePathCallback
val intent = fileChooserParams?.createIntent()
val mimetypesList = fileChooserParams?.acceptTypes
intent?.putExtra(Intent.EXTRA_MIME_TYPES, mimetypesList)
intent?.let {
startActivityForResult(Intent.createChooser(it, ""), REQ_SELECT_IMAGE)
}
return true
}
HTML File sample source is very simple. It has one 'form' and generates 'blob' by URI obtained through FileChooser.
<form action="upload" method="post" id="fileForm" enctype="multipart/form-data">
<input type="file" name="file" id="fileInput" accept="video/*">
<input type="submit">
</form>
<script>
var intput = document.getElementById('fileInput');
intput.addEventListener('change', function (e) {
const file = this.files[0]
var video = document.createElement('video');
video.width = 240;
video.height = 240;
video.addEventListener('error', function (e) {
console.log(e.target.error);
alert(e);
});
video.onloadedmetadata = function (e) {
console.log("loadedmetadata")
video.play();
}
video.src = URL.createObjectURL(file);
document.body.appendChild(video);
});
</script>