mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-14 11:47:32 +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;
|
break;
|
||||||
}
|
}
|
||||||
case QHYBRID_COMMAND_UPLOAD_FILE:{
|
case QHYBRID_COMMAND_UPLOAD_FILE:{
|
||||||
if(!externalAccessAllowed()) break;
|
if(!dangerousIntentsAllowed()) break;
|
||||||
handleFileUploadIntent(intent);
|
handleFileUploadIntent(intent);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QHYBRID_COMMAND_PUSH_CONFIG:{
|
case QHYBRID_COMMAND_PUSH_CONFIG:{
|
||||||
if(!externalAccessAllowed()) break;
|
|
||||||
handleConfigSetIntent(intent);
|
handleConfigSetIntent(intent);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -389,7 +388,7 @@ public class QHybridSupport extends QHybridBaseSupport {
|
|||||||
watchAdapter.pushConfigJson(configJson);
|
watchAdapter.pushConfigJson(configJson);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean externalAccessAllowed(){
|
private boolean dangerousIntentsAllowed(){
|
||||||
return GBApplication.getDeviceSpecificSharedPrefs(gbDevice.getAddress()).getBoolean(DeviceSettingsPreferenceConst.PREF_HYBRID_HR_DANGEROUS_EXTERNAL_INTENTS, true);
|
return GBApplication.getDeviceSpecificSharedPrefs(gbDevice.getAddress()).getBoolean(DeviceSettingsPreferenceConst.PREF_HYBRID_HR_DANGEROUS_EXTERNAL_INTENTS, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user