mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 03:19:24 +01:00
Indentation depends on cards
This commit is contained in:
@@ -32,9 +32,9 @@ import androidx.preference.PreferenceManager;
|
||||
|
||||
public class ViewCardOptional extends CardView {
|
||||
private boolean cards;
|
||||
private boolean indentation;
|
||||
private boolean compact;
|
||||
private boolean threading;
|
||||
private boolean indentation;
|
||||
private int margin;
|
||||
private int ident;
|
||||
private Integer color = null;
|
||||
@@ -57,9 +57,9 @@ public class ViewCardOptional extends CardView {
|
||||
private void init(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
cards = prefs.getBoolean("cards", true);
|
||||
indentation = prefs.getBoolean("indentation", false);
|
||||
compact = prefs.getBoolean("compact", false);
|
||||
threading = prefs.getBoolean("threading", true);
|
||||
indentation = prefs.getBoolean("indentation", false);
|
||||
|
||||
margin = Helper.dp2pixels(context, compact ? 3 : 6);
|
||||
ident = Helper.dp2pixels(context, 12 + (compact ? 3 : 6));
|
||||
|
||||
Reference in New Issue
Block a user