mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-04 18:29:17 +02:00
add scroll to first/last entry on empty search
This commit is contained in:
parent
158d272419
commit
ab6fa55867
2 changed files with 17 additions and 1 deletions
|
@ -1572,6 +1572,13 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
if(searchResultPosition<0) searchResultPosition = searchResult.length-1;
|
||||
if(searchResultPosition>=searchResult.length) searchResultPosition = 0;
|
||||
fragment.scrollToMsgId(searchResult[searchResultPosition]);
|
||||
} else {
|
||||
// no search, scroll to first/last message
|
||||
if(searchNext) {
|
||||
fragment.scrollToBottom();
|
||||
} else {
|
||||
fragment.scrollToTop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue