Skip to content

Commit b74f318

Browse files
maniac103Myself5
authored andcommitted
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 Signed-off-by: Joe Maples <joe@frap129.org>
1 parent 224793b commit b74f318

3 files changed

Lines changed: 29 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2015 The Android Open Source Project
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
18+
19+
<!-- Description for the screen zoom level that makes interface elements smaller. [CHAR LIMIT=24] -->
20+
<string name="screen_zoom_summary_smaller">Smaller</string>
21+
22+
<!-- Description for the screen zoom level that makes interface elements smallest. [CHAR LIMIT=24] -->
23+
<string name="screen_zoom_summary_smallest">Smallest</string>
24+
25+
</resources>

packages/SettingsLib/res/values/dimens.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
<!-- Maximum density scale. The actual scale used depends on the device. -->
114114
<fraction name="display_density_max_scale">150%</fraction>
115115
<!-- Minimum density scale. This is available on all devices. -->
116-
<fraction name="display_density_min_scale">85%</fraction>
116+
<fraction name="display_density_min_scale">70%</fraction>
117117

118118
<!-- Broadcast dialog -->
119119
<dimen name="broadcast_dialog_title_img_margin_top">18dp</dimen>

packages/SettingsLib/src/com/android/settingslib/display/DisplayDensityUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public class DisplayDensityUtils {
5454
* largest.
5555
*/
5656
private static final int[] SUMMARIES_SMALLER = new int[] {
57-
R.string.screen_zoom_summary_small
57+
R.string.screen_zoom_summary_small,
58+
R.string.screen_zoom_summary_smaller,
59+
R.string.screen_zoom_summary_smallest
5860
};
5961

6062
/**

0 commit comments

Comments
 (0)