diff --git a/ReadMe.txt b/ReadMe.txt index 0ae589e..ebb7ffa 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -62,6 +62,7 @@ Version 2.8 (2024-xx-xx) - Updated source code with Emu48 version 1.66+. - Fix an USB serial issue with Android 13+ (fix #23). +- Extend the KML MenuItem commands for Android only with: 201 (CUSTOM_PIXEL_BORDER_ON), 202 (CUSTOM_PIXEL_BORDER_OFF), 203 (CUSTOM_PIXEL_BORDER_TOGGLE) (fix #28). Version 2.7 (2024-06-14) @@ -278,7 +279,6 @@ FAQ TODO - NDK 26 does not compile -- Adding a new KML command for Android only: CUSTOM_PIXEL_BORDER_ON 10001 / CUSTOM_PIXEL_BORDER_OFF 10002 / CUSTOM_PIXEL_BORDER_TOGGLE 10003 - Patching 49G to disable 10 min auto off causes a reset when touching the Recent button and coming back to the app (with a Flashcard loaded). - Add an "haptic" feedback with a sound instead of a vibration (F. Giampietro). - Add a Cancel button to the HP48 memory card creator dialog. diff --git a/app/src/main/assets/ReadMe.txt b/app/src/main/assets/ReadMe.txt index 73256e9..5946a1b 100644 --- a/app/src/main/assets/ReadMe.txt +++ b/app/src/main/assets/ReadMe.txt @@ -62,6 +62,7 @@ Version 2.8 (2024-xx-xx) - Updated source code with Emu48 version 1.66+. - Fix an USB serial issue with Android 13+ (fix #23). +- Extend the KML MenuItem commands for Android only with: 201 (CUSTOM_PIXEL_BORDER_ON), 202 (CUSTOM_PIXEL_BORDER_OFF), 203 (CUSTOM_PIXEL_BORDER_TOGGLE) (fix #28). Version 2.7 (2024-06-14) diff --git a/app/src/main/java/org/emulator/forty/eight/MainActivity.java b/app/src/main/java/org/emulator/forty/eight/MainActivity.java index ca96ba6..21f4da7 100644 --- a/app/src/main/java/org/emulator/forty/eight/MainActivity.java +++ b/app/src/main/java/org/emulator/forty/eight/MainActivity.java @@ -1984,6 +1984,19 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On break; case 26: // TOOL_MACRO_SETTINGS break; + case 201: // Custom: CUSTOM_PIXEL_BORDER_ON + settings.putBoolean("settings_lcd_pixel_borders", true); + updateFromPreferences("settings_lcd_pixel_borders", true); + break; + case 202: // Custom: CUSTOM_PIXEL_BORDER_OFF + settings.putBoolean("settings_lcd_pixel_borders", false); + updateFromPreferences("settings_lcd_pixel_borders", true); + break; + case 203: // Custom: CUSTOM_PIXEL_BORDER_TOGGLE + boolean usePixelBorders = settings.getBoolean("settings_lcd_pixel_borders", false); + settings.putBoolean("settings_lcd_pixel_borders", !usePixelBorders); + updateFromPreferences("settings_lcd_pixel_borders", true); + break; default: break; }