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).

This commit is contained in:
dgis 2024-10-08 21:00:49 +02:00
parent e3f1164a47
commit 089562ab62
3 changed files with 15 additions and 1 deletions

View file

@ -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.

View file

@ -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)

View file

@ -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;
}