1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-15 13:35:09 -05:00

ConversationActivity: Use same font size for EditText as for conversation.

This commit is contained in:
Sebastian Kaspari 2012-06-20 07:38:39 +02:00
parent 4831e71567
commit 8fc10e0419

View File

@ -233,10 +233,10 @@ public class ConversationActivity extends SherlockActivity implements ServiceCon
server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize); server.getConversation(ServerInfo.DEFAULT_NAME).setHistorySize(historySize);
} }
float fontSize = settings.getFontSize() * density; float fontSize = settings.getFontSize();
indicator.setTextSize(fontSize); indicator.setTextSize(fontSize * density);
input.setTextSize(fontSize); input.setTextSize(settings.getFontSize());
input.setTypeface(Typeface.MONOSPACE); input.setTypeface(Typeface.MONOSPACE);
// Optimization : cache field lookups // Optimization : cache field lookups