Commit faff662
authored
Fix SMS and Dialing on Android multi-mode devices (e.g., Galaxy Fold). (#4330)
Fixed #3607
This change decouples telephony capabilities from the form factor check (`isTablet`).
Previously, `canDial()` returned `false` if `isTablet()` was true, which caused `getSMSSupport()` to return `SMS_NOT_SUPPORTED` on large-screen devices even if they had telephony hardware (like the Galaxy Fold).
Changes:
- Override `canDial()` in `AndroidImplementation` to explicitly check for `PackageManager.FEATURE_TELEPHONY`.
- This ensures `getSMSSupport()` returns `SMS_INTERACTIVE` on all devices with telephony hardware, regardless of screen size.
- `isTablet()` remains based on screen layout size to preserve correct UI behavior.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent f399299 commit faff662
File tree
1 file changed
+8
-0
lines changed- Ports/Android/src/com/codename1/impl/android
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
2957 | 2965 | | |
2958 | 2966 | | |
2959 | 2967 | | |
| |||
0 commit comments