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

Unverified Commit 8da344c3 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
(cherry picked from commit 99f23aba6b0e86fabee1fa63f12c6de4643ac81b)
(cherry picked from commit e82456fb)
parent 2a83a679
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>
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@
    <!-- Maximum density scale. The actual scale used depends on the device. -->
    <fraction name="display_density_max_scale">150%</fraction>
    <!-- Minimum density scale. This is available on all devices. -->
    <fraction name="display_density_min_scale">85%</fraction>
    <fraction name="display_density_min_scale">70%</fraction>

    <!-- Broadcast dialog -->
    <dimen name="broadcast_dialog_title_img_margin_top">18dp</dimen>
+3 −1
Original line number Diff line number Diff line
@@ -54,7 +54,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
    };

    /**