mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-08 12:18:07 -05:00
ConversationActivity: Do not determine density twice.
This commit is contained in:
parent
8f329f475c
commit
9a05d3b606
@ -233,9 +233,7 @@ public class ConversationActivity extends SherlockActivity implements ServiceCon
|
|||||||
server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize);
|
server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize);
|
||||||
}
|
}
|
||||||
|
|
||||||
final float scaledDensity = getResources().getDisplayMetrics().density;
|
float fontSize = settings.getFontSize() * density;
|
||||||
|
|
||||||
float fontSize = settings.getFontSize() * scaledDensity;
|
|
||||||
indicator.setTextSize(fontSize);
|
indicator.setTextSize(fontSize);
|
||||||
|
|
||||||
input.setTextSize(fontSize);
|
input.setTextSize(fontSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user