mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-17 21:11:48 +00:00

committed by
Moxie Marlinspike

parent
bc787f20e3
commit
44df1128af
@@ -174,14 +174,14 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
private View composePanel;
|
private View composePanel;
|
||||||
private View composeBubble;
|
private View composeBubble;
|
||||||
|
|
||||||
private AttachmentTypeSelectorAdapter attachmentAdapter;
|
private AttachmentTypeSelectorAdapter attachmentAdapter;
|
||||||
private AttachmentManager attachmentManager;
|
private AttachmentManager attachmentManager;
|
||||||
private BroadcastReceiver securityUpdateReceiver;
|
private BroadcastReceiver securityUpdateReceiver;
|
||||||
private BroadcastReceiver groupUpdateReceiver;
|
private BroadcastReceiver groupUpdateReceiver;
|
||||||
private Optional<EmojiPopup> emojiPopup = Optional.absent();
|
private Optional<EmojiPopup> emojiPopup = Optional.absent();
|
||||||
private EmojiToggle emojiToggle;
|
private EmojiToggle emojiToggle;
|
||||||
private HidingImageButton quickAttachmentToggle;
|
protected HidingImageButton quickAttachmentToggle;
|
||||||
private QuickAttachmentDrawer quickAttachmentDrawer;
|
private QuickAttachmentDrawer quickAttachmentDrawer;
|
||||||
|
|
||||||
private Recipients recipients;
|
private Recipients recipients;
|
||||||
private long threadId;
|
private long threadId;
|
||||||
@@ -848,7 +848,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
quickAttachmentDrawer.setListener(this);
|
quickAttachmentDrawer.setListener(this);
|
||||||
quickAttachmentToggle.setOnClickListener(new QuickAttachmentToggleListener());
|
quickAttachmentToggle.setOnClickListener(new QuickAttachmentToggleListener());
|
||||||
} else {
|
} else {
|
||||||
quickAttachmentToggle.setVisibility(View.GONE);
|
quickAttachmentToggle.disable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -56,6 +56,7 @@ public class ConversationPopupActivity extends ConversationActivity {
|
|||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
composeText.requestFocus();
|
composeText.requestFocus();
|
||||||
|
quickAttachmentToggle.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -26,6 +26,7 @@ public class HidingImageButton extends ImageButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void hide() {
|
public void hide() {
|
||||||
|
if (!isEnabled()) return;
|
||||||
final Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_to_right);
|
final Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_to_right);
|
||||||
animation.setAnimationListener(new AnimationListener() {
|
animation.setAnimationListener(new AnimationListener() {
|
||||||
@Override public void onAnimationStart(Animation animation) {}
|
@Override public void onAnimationStart(Animation animation) {}
|
||||||
@@ -38,6 +39,7 @@ public class HidingImageButton extends ImageButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void show() {
|
public void show() {
|
||||||
|
if (!isEnabled()) return;
|
||||||
setVisibility(VISIBLE);
|
setVisibility(VISIBLE);
|
||||||
animateWith(AnimationUtils.loadAnimation(getContext(), R.anim.slide_from_right));
|
animateWith(AnimationUtils.loadAnimation(getContext(), R.anim.slide_from_right));
|
||||||
}
|
}
|
||||||
@@ -47,4 +49,9 @@ public class HidingImageButton extends ImageButton {
|
|||||||
animation.setInterpolator(new FastOutSlowInInterpolator());
|
animation.setInterpolator(new FastOutSlowInInterpolator());
|
||||||
startAnimation(animation);
|
startAnimation(animation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void disable() {
|
||||||
|
setVisibility(GONE);
|
||||||
|
setEnabled(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user