diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java index 24fac2be6..0def62ea8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/QHybridSupport.java @@ -369,12 +369,11 @@ public class QHybridSupport extends QHybridBaseSupport { break; } case QHYBRID_COMMAND_UPLOAD_FILE:{ - if(!externalAccessAllowed()) break; + if(!dangerousIntentsAllowed()) break; handleFileUploadIntent(intent); break; } case QHYBRID_COMMAND_PUSH_CONFIG:{ - if(!externalAccessAllowed()) break; handleConfigSetIntent(intent); break; } @@ -389,7 +388,7 @@ public class QHybridSupport extends QHybridBaseSupport { watchAdapter.pushConfigJson(configJson); } - private boolean externalAccessAllowed(){ + private boolean dangerousIntentsAllowed(){ return GBApplication.getDeviceSpecificSharedPrefs(gbDevice.getAddress()).getBoolean(DeviceSettingsPreferenceConst.PREF_HYBRID_HR_DANGEROUS_EXTERNAL_INTENTS, true); }