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

Unverified Commit 38c60477 authored by Danny Baumann's avatar Danny Baumann Committed by Michael Bestas
Browse files

Allow adjusting screen density to smaller sizes.

Accomodates for 6" 1080x1920 devices that run at 480dpi by default, but
those physical resolution is ~360dpi.

Change-Id: I82973b097612f1e7d26af9fdbb3ac2ae28c6b93b
parent a836425d
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
**
** Copyright 2016 The CyanogenMod Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
**     http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Description for the screen zoom level that makes interface elements smaller. [CHAR LIMIT=24] -->
    <string name="screen_zoom_summary_smaller">Smaller</string>
    <!-- Description for the screen zoom level that makes interface elements smallest. [CHAR LIMIT=24] -->
    <string name="screen_zoom_summary_smallest">Smallest</string>
</resources>
+4 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public class DisplayDensityUtils {
    private static final float MIN_SCALE_INTERVAL = 0.09f;

    /** Minimum density scale. This is available on all devices. */
    private static final float MIN_SCALE = 0.85f;
    private static final float MIN_SCALE = 0.70f;

    /** Maximum density scale. The actual scale used depends on the device. */
    private static final float MAX_SCALE = 1.50f;
@@ -59,7 +59,9 @@ public class DisplayDensityUtils {
     * largest.
     */
    private static final int[] SUMMARIES_SMALLER = new int[] {
            R.string.screen_zoom_summary_small
            R.string.screen_zoom_summary_small,
            R.string.screen_zoom_summary_smaller,
            R.string.screen_zoom_summary_smallest
    };

    /**