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 b5991c8cc5
commit df23db2600
2 changed files with 15 additions and 15 deletions

View file

@ -28,19 +28,6 @@
"versionName": "1.7.8.6",
"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",
"filters": [
@ -66,6 +53,19 @@
"versionCode": 15702,
"versionName": "1.7.8.6",
"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"

View file

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