forked from organicmaps/organicmaps
Updated function style
Signed-off-by: ANS-UXI <anshumansahoo500@gmail.com>
This commit is contained in:
parent
0737c8d62c
commit
da29fe8b45
1 changed files with 6 additions and 3 deletions
|
@ -521,8 +521,10 @@ public class BookmarkListAdapter extends RecyclerView.Adapter<Holders.BaseBookma
|
|||
}
|
||||
}
|
||||
|
||||
private void setMoreButtonVisibility(TextView text, TextView moreBtn){
|
||||
text.post(() -> {
|
||||
private void setMoreButtonVisibility(TextView text, TextView moreBtn)
|
||||
{
|
||||
text.post(() ->
|
||||
{
|
||||
int lineCount = text.getLineCount();
|
||||
if(lineCount > 2)
|
||||
{
|
||||
|
@ -534,7 +536,8 @@ public class BookmarkListAdapter extends RecyclerView.Adapter<Holders.BaseBookma
|
|||
});
|
||||
}
|
||||
|
||||
private void onMoreButtonClicked(TextView moreBtn, TextView text){
|
||||
private void onMoreButtonClicked(TextView moreBtn, TextView text)
|
||||
{
|
||||
if(text.getMaxLines() == 2)
|
||||
{
|
||||
text.setMaxLines(Integer.MAX_VALUE);
|
||||
|
|
Loading…
Add table
Reference in a new issue