mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 11:53:38 +00:00
hide the input panel when editing nicknames
This commit is contained in:
parent
8001f556b7
commit
a9b38bd19c
@ -17,6 +17,8 @@
|
|||||||
package org.thoughtcrime.securesms.conversation;
|
package org.thoughtcrime.securesms.conversation;
|
||||||
|
|
||||||
import android.Manifest;
|
import android.Manifest;
|
||||||
|
import android.animation.Animator;
|
||||||
|
import android.animation.AnimatorListenerAdapter;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.annotation.TargetApi;
|
import android.annotation.TargetApi;
|
||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
@ -399,8 +401,20 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
textView.setText(getRecipient().getName());
|
textView.setText(getRecipient().getName());
|
||||||
}
|
}
|
||||||
imm.hideSoftInputFromWindow(v.getWindowToken(),0);
|
imm.hideSoftInputFromWindow(v.getWindowToken(),0);
|
||||||
|
inputPanel.animate().alpha(1f).setListener(new AnimatorListenerAdapter() {
|
||||||
|
@Override
|
||||||
|
public void onAnimationEnd(Animator animation) {
|
||||||
|
inputPanel.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
});
|
||||||
cancelButtonContainer.setVisibility(View.GONE);
|
cancelButtonContainer.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
|
inputPanel.animate().alpha(0f).setListener(new AnimatorListenerAdapter() {
|
||||||
|
@Override
|
||||||
|
public void onAnimationEnd(Animator animation) {
|
||||||
|
inputPanel.setVisibility(View.INVISIBLE);
|
||||||
|
}
|
||||||
|
});
|
||||||
String nickname = DatabaseFactory.getStorage(this).getDisplayName(getRecipient().getAddress().serialize());
|
String nickname = DatabaseFactory.getStorage(this).getDisplayName(getRecipient().getAddress().serialize());
|
||||||
titleTextView.setText(nickname);
|
titleTextView.setText(nickname);
|
||||||
titleTextView.setSelection(nickname.length());
|
titleTextView.setSelection(nickname.length());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user