mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 00:51:44 +01:00
Small behavior/display fixes/improvements
This commit is contained in:
@@ -280,6 +280,11 @@ public class Helper {
|
||||
return Math.round(dp * scale);
|
||||
}
|
||||
|
||||
static int pixels2dp(Context context, float pixels) {
|
||||
float scale = context.getResources().getDisplayMetrics().density;
|
||||
return Math.round(pixels / scale);
|
||||
}
|
||||
|
||||
static float getTextSize(Context context, int zoom) {
|
||||
TypedArray ta = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user