also looking at this
feat(android): the recording store's two reads in Zig — ratchet 67 → 65
#177
8 files
+538
-5
| @@ -1817,10 +1817,20 @@ class CraftBridge( | ||
| 1817 | 1817 | } |
| 1818 | 1818 | |
| 1819 | 1819 | @JavascriptInterface |
| 1820 | fun getLocationRecordingState(): String = CraftLocationRecordingStore.state(activity).toString() | |
| 1820 | fun getLocationRecordingState(): String { | |
| 1821 | // Null is "Zig declined", not "no recording" — an absent recording is | |
| 1822 | // a state object saying so, and returning it here is the answer. | |
| 1823 | CraftNative.getLocationRecordingState(activity)?.let { return it } | |
| 1824 | ||
| 1825 | return CraftLocationRecordingStore.state(activity).toString() | |
| 1826 | } | |
| 1821 | 1827 | |
| 1822 | 1828 | @JavascriptInterface |
| 1823 | fun readLocationRecording(): String = CraftLocationRecordingStore.locations(activity).toString() | |
| 1829 | fun readLocationRecording(): String { | |
| 1830 | CraftNative.readLocationRecording(activity)?.let { return it } | |
| 1831 | ||
| 1832 | return CraftLocationRecordingStore.locations(activity).toString() | |
| 1833 | } | |
| 1824 | 1834 | |
| 1825 | 1835 | // ==================== Clipboard ==================== |
| 1826 | 1836 | |