Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c03c968 authored by Daniel Applebaum's avatar Daniel Applebaum
Browse files

Provide for users with good eyesight to completely take advantage of the

"smaller" (and smaller) fonts by allowing the Accounts and Folder List
items to have a height smaller than the normal Android minimum.  This
option is off by default to maintain existing behavior for
uninterested parties.  The preferences text is not especially
compelling so could certainly be changed if better phrasing is found. 

parent 5fa757bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:id="@+id/accounts_item_layout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
+1 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    android:id="@+id/folder_list_item_layout"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
+3 −0
Original line number Diff line number Diff line
@@ -903,6 +903,9 @@ Welcome to K-9 Mail setup. K-9 is an open source mail client for Android origin
    <string name="gestures_title">Gestures</string>
    <string name="gestures_summary">Accept gesture control</string>
    
    <string name="high_density_title">High density</string>
    <string name="high_density_summary">Adjust layouts to display more on each page</string>

    <string name="volume_navigation_title">Volume key navigation</string>
    <string name="volume_navigation_summary">Flip through items using the volume controls</string>
    <string name="volume_navigation_message">Message view</string>
+7 −0
Original line number Diff line number Diff line
@@ -67,6 +67,13 @@
                android:title="@string/animations_title"
                android:summary="@string/animations_summary" />
                
            <CheckBoxPreference
                android:persistent="false"
                android:key="high_density"
                android:title="@string/high_density_title"
                android:summary="@string/high_density_summary" />
                

        </PreferenceCategory>

        <PreferenceCategory
+17 −0
Original line number Diff line number Diff line
@@ -176,6 +176,9 @@ public class K9 extends Application
    private static boolean mQuietTimeEnabled = false;
    private static String mQuietTimeStarts = null;
    private static String mQuietTimeEnds = null;
    private static boolean highDensity = false;

    

    private static boolean useGalleryBugWorkaround = false;
    private static boolean galleryBuggy;
@@ -452,6 +455,8 @@ public class K9 extends Application

        editor.putBoolean("keyguardPrivacy", mKeyguardPrivacy);
        
        editor.putBoolean("highDensity", highDensity);

        fontSizes.save(editor);
    }

@@ -502,6 +507,8 @@ public class K9 extends Application

        mKeyguardPrivacy = sprefs.getBoolean("keyguardPrivacy", false);
        
        highDensity = sprefs.getBoolean("highDensity", false);

        fontSizes.load(sprefs);

        try
@@ -1035,6 +1042,16 @@ public class K9 extends Application
        mKeyguardPrivacy = state;
    }
    
    public static boolean isHighDensity()
    {
        return highDensity;
    }

    public static void setHighDensity(boolean highDensity)
    {
        K9.highDensity = highDensity;
    }

    /**
     * Check if this system contains a buggy Gallery 3D package.
     *
Loading