@craft-native/android 0.0.191 → 0.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -286,7 +286,10 @@ internal class CraftNativeServices(
|
|
|
286
286
|
else -> Intent(Intent.ACTION_SEND).apply { type = "text/plain" }
|
|
287
287
|
}
|
|
288
288
|
if (text.isNotBlank()) intent.putExtra(Intent.EXTRA_TEXT, text)
|
|
289
|
-
options.optString("title").takeIf { it.isNotBlank() }?.let {
|
|
289
|
+
options.optString("title").takeIf { it.isNotBlank() }?.let {
|
|
290
|
+
intent.putExtra(Intent.EXTRA_SUBJECT, it)
|
|
291
|
+
intent.putExtra(Intent.EXTRA_TITLE, it)
|
|
292
|
+
}
|
|
290
293
|
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
|
291
294
|
host.startActivity(Intent.createChooser(intent, options.optString("title").ifBlank { null }))
|
|
292
295
|
// Android does not say whether something was shared; the sheet opened.
|
|
@@ -5111,7 +5111,7 @@ class MainActivity : AppCompatActivity() {
|
|
|
5111
5111
|
val pressOutHandler = craftNativeEventName(events, "onPressOut").takeIf { it.isNotBlank() }
|
|
5112
5112
|
if (pressInHandler != null) screen.pressInHandlers[control] = pressInHandler else screen.pressInHandlers.remove(control)
|
|
5113
5113
|
if (pressOutHandler != null) screen.pressOutHandlers[control] = pressOutHandler else screen.pressOutHandlers.remove(control)
|
|
5114
|
-
if (type != "Button" && type != "Link" && type != "TextInput" && type != "Picker" && type != "DatePicker" && type != "Modal" && type != "Switch" && type != "Slider" && type != "ActivityIndicator" && type != "KeyboardAvoidingView" && type != "StatusBar" && type != "RefreshControl" && type != "Map") {
|
|
5114
|
+
if (type != "Button" && type != "Link" && type != "Checkbox" && type != "TextInput" && type != "Picker" && type != "DatePicker" && type != "Modal" && type != "Switch" && type != "Slider" && type != "ActivityIndicator" && type != "KeyboardAvoidingView" && type != "StatusBar" && type != "RefreshControl" && type != "Map") {
|
|
5115
5115
|
val handler = craftNativeEventName(events, "onPress", "onClick")
|
|
5116
5116
|
val disabled = props.optBoolean("disabled", false)
|
|
5117
5117
|
val target = listOf(props.opt("href"), props.opt("to"))
|