Split view/compose zoom

This commit is contained in:
M66B
2019-11-15 16:08:03 +01:00
parent fe9ca75d9a
commit 266959ece8
6 changed files with 29 additions and 29 deletions

View File

@@ -197,10 +197,8 @@ class ImageHelper {
return round;
}
static Drawable decodeImage(final Context context, final long id, String source, boolean show, final TextView view) {
static Drawable decodeImage(final Context context, final long id, String source, boolean show, int zoom, final TextView view) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean compact = prefs.getBoolean("compact", false);
int zoom = prefs.getInt("zoom", compact ? 0 : 1);
boolean inline = prefs.getBoolean("inline_images", false);
final int px = Helper.dp2pixels(context, (zoom + 1) * 24);