am e103e90f
: Dont take density into account when setting initial zoom values.
* commit 'e103e90fa1fe7c440a99d3f5484adc45097f3caa': Dont take density into account when setting initial zoom values.
This commit is contained in:
commit
42cc693ccd
@ -515,14 +515,14 @@ public abstract class MessageViewFragmentBase extends Fragment implements View.O
|
||||
|
||||
/**
|
||||
* Returns the zoom scale (in percent) which is a combination of the user setting
|
||||
* (tiny, small, normal, large, huge) and the device density. The intention
|
||||
* (tiny, small, normal, large, huge). The intention
|
||||
* is for the text to be physically equal in size over different density
|
||||
* screens.
|
||||
* screens. We do not need to multiply by the density as webview already takes this
|
||||
* into account when setting the initial scale.
|
||||
*/
|
||||
private int getWebViewZoom() {
|
||||
float density = mContext.getResources().getDisplayMetrics().density;
|
||||
int zoom = Preferences.getPreferences(mContext).getTextZoom();
|
||||
return (int) (ZOOM_SCALE_ARRAY[zoom] * density * 100);
|
||||
return (int) (ZOOM_SCALE_ARRAY[zoom] * 100);
|
||||
}
|
||||
|
||||
private void initContactStatusViews() {
|
||||
|
Loading…
Reference in New Issue
Block a user