hide attach record voice and take picture when buttons already visible

This commit is contained in:
12aw 2024-01-15 01:05:02 +01:00
parent 286e8447ad
commit aca62732c9
2 changed files with 15 additions and 15 deletions

View file

@ -28,19 +28,6 @@
"versionName": "1.7.8.6", "versionName": "1.7.8.6",
"outputFile": "monocles chat-1.7.8.6-git-x86_64-release.apk" "outputFile": "monocles chat-1.7.8.6-git-x86_64-release.apk"
}, },
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 15701,
"versionName": "1.7.8.6",
"outputFile": "monocles chat-1.7.8.6-git-armeabi-v7a-release.apk"
},
{ {
"type": "ONE_OF_MANY", "type": "ONE_OF_MANY",
"filters": [ "filters": [
@ -66,6 +53,19 @@
"versionCode": 15702, "versionCode": 15702,
"versionName": "1.7.8.6", "versionName": "1.7.8.6",
"outputFile": "monocles chat-1.7.8.6-git-x86-release.apk" "outputFile": "monocles chat-1.7.8.6-git-x86-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
"value": "armeabi-v7a"
}
],
"attributes": [],
"versionCode": 15701,
"versionName": "1.7.8.6",
"outputFile": "monocles chat-1.7.8.6-git-armeabi-v7a-release.apk"
} }
], ],
"elementType": "File" "elementType": "File"

View file

@ -62,8 +62,8 @@ public class ConversationMenuConfigurator {
return; return;
} }
if (hideVoiceAndTakePicture) { if (hideVoiceAndTakePicture) {
microphoneAvailable = true; microphoneAvailable = false;
cameraAvailable = true; cameraAvailable = false;
} }
menu.findItem(R.id.attach_record_voice).setVisible(microphoneAvailable); menu.findItem(R.id.attach_record_voice).setVisible(microphoneAvailable);
menu.findItem(R.id.attach_take_picture).setVisible(cameraAvailable); menu.findItem(R.id.attach_take_picture).setVisible(cameraAvailable);