mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-04 08:15:07 -05:00
show correct tooltip when long pressing start conversations. fixes #2635
This commit is contained in:
parent
4e864935fe
commit
dbd489cbcb
@ -443,7 +443,12 @@ public class ConversationActivity extends XmppActivity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Config.supportOmemo()) {
|
if (Config.supportOmemo()) {
|
||||||
new Handler().post(new Runnable() {
|
new Handler().post(addOmemoDebuggerRunnable);
|
||||||
|
}
|
||||||
|
return super.onCreateOptionsMenu(menu);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Runnable addOmemoDebuggerRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
View view = findViewById(R.id.action_security);
|
View view = findViewById(R.id.action_security);
|
||||||
@ -451,15 +456,12 @@ public class ConversationActivity extends XmppActivity
|
|||||||
view.setOnLongClickListener(new View.OnLongClickListener() {
|
view.setOnLongClickListener(new View.OnLongClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onLongClick(View v) {
|
public boolean onLongClick(View v) {
|
||||||
return quickOmemoDebugger(getSelectedConversation());
|
return v.getId() == R.id.action_security && quickOmemoDebugger(getSelectedConversation());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
}
|
|
||||||
return super.onCreateOptionsMenu(menu);
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean quickOmemoDebugger(Conversation c) {
|
private boolean quickOmemoDebugger(Conversation c) {
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user