Этот коммит содержится в:
Anton Tananaev
2021-12-25 15:53:01 -08:00
родитель 11469d3c94
Коммит d8a469bf1e
+2 -1
Просмотреть файл
@@ -152,7 +152,7 @@ class MainFragment : WebViewFragment() {
if (ActivityCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.ACCESS_FINE_LOCATION)) { if (ActivityCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.ACCESS_FINE_LOCATION)) {
AlertDialog.Builder(activity) AlertDialog.Builder(activity)
.setMessage(R.string.permission_location_rationale) .setMessage(R.string.permission_location_rationale)
.setNeutralButton(android.R.string.ok) { dialog: DialogInterface?, which: Int -> .setNeutralButton(android.R.string.ok) { _: DialogInterface?, _: Int ->
geolocationRequestOrigin = origin geolocationRequestOrigin = origin
geolocationCallback = callback geolocationCallback = callback
ActivityCompat.requestPermissions( ActivityCompat.requestPermissions(
@@ -177,6 +177,7 @@ class MainFragment : WebViewFragment() {
} }
// Android 4.1+ // Android 4.1+
@Suppress("UNUSED_PARAMETER")
fun openFileChooser(uploadMessage: ValueCallback<Uri?>?, acceptType: String?, capture: String?) { fun openFileChooser(uploadMessage: ValueCallback<Uri?>?, acceptType: String?, capture: String?) {
openFileCallback = uploadMessage openFileCallback = uploadMessage
val intent = Intent(Intent.ACTION_GET_CONTENT) val intent = Intent(Intent.ACTION_GET_CONTENT)