mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
fixup! Printer: allow printing incoming text shared to Gadgetbridge
Use the correct default for the preference in the support class
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ public class GenericThermalPrinterSupport extends AbstractBTLESingleDeviceSuppor
|
||||
public void onNotification(NotificationSpec notificationSpec) {
|
||||
if(notificationSpec.type.equals(NotificationType.GADGETBRIDGE_TEXT_RECEIVER)) {
|
||||
final SharedPreferences prefs = GBApplication.getDeviceSpecificSharedPrefs(getDevice().getAddress());
|
||||
if(!prefs.getBoolean("pref_printer_print_received_text", false)) {
|
||||
if(!prefs.getBoolean("pref_printer_print_received_text", true)) {
|
||||
LOG.info("Not printing received text, device preference forbids this.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user