mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 18:45:49 +01:00
Always allow custom text widget intents
This commit is contained in:
parent
d95ed57824
commit
d688f42735
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user