mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
Disable mic/camera on inactive group thread
Fixes #4653 Fixes #3334 // FREEBIE
This commit is contained in:
parent
a4f7b78fd0
commit
2790128e9c
@ -730,8 +730,9 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
private void initializeEnabledCheck() {
|
||||
boolean enabled = !(isPushGroupConversation() && !isActiveGroup());
|
||||
composeText.setEnabled(enabled);
|
||||
inputPanel.setEnabled(enabled);
|
||||
sendButton.setEnabled(enabled);
|
||||
attachButton.setEnabled(enabled);
|
||||
}
|
||||
|
||||
private void initializeDraftFromDatabase() {
|
||||
|
@ -153,6 +153,13 @@ public class InputPanel extends LinearLayout
|
||||
this.microphoneRecorderView.cancelAction();
|
||||
}
|
||||
|
||||
public void setEnabled(boolean enabled) {
|
||||
composeText.setEnabled(enabled);
|
||||
emojiToggle.setEnabled(enabled);
|
||||
quickAudioToggle.setEnabled(enabled);
|
||||
quickCameraToggle.setEnabled(enabled);
|
||||
}
|
||||
|
||||
private long onRecordHideEvent(float x) {
|
||||
ListenableFuture<Void> future = slideToCancel.hide(x);
|
||||
long elapsedTime = recordTime.hide();
|
||||
|
Loading…
x
Reference in New Issue
Block a user